aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-01-13 17:13:09 -0500
committerPeter Huewe <peterhuewe@gmx.de>2015-01-17 09:04:01 -0500
commitac77d33e91efcccb7b5b555a41481a6d775b6f69 (patch)
treec2412ce7fdbc05a6a44845ea6c752cc179fc8443
parentc4eadfafb91d5501095c55ffadaa1168743f39d3 (diff)
tpm/tpm_i2c_stm_st33: Remove sparse spaces
Remove some useless spaces (new line or space) Reviewed-by: Jason Gunthorpe <jason.gunthorpe@obsidianresearch.com> Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Reviewed-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
-rw-r--r--drivers/char/tpm/tpm_i2c_stm_st33.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c
index 4f70296f3a7f..f05b0a43d87b 100644
--- a/drivers/char/tpm/tpm_i2c_stm_st33.c
+++ b/drivers/char/tpm/tpm_i2c_stm_st33.c
@@ -238,7 +238,6 @@ static int check_locality(struct tpm_chip *chip)
238 return chip->vendor.locality; 238 return chip->vendor.locality;
239 239
240 return -EACCES; 240 return -EACCES;
241
242} /* check_locality() */ 241} /* check_locality() */
243 242
244/* 243/*
@@ -352,7 +351,7 @@ static u8 interrupt_to_status(u8 irq_mask)
352{ 351{
353 u8 status = 0; 352 u8 status = 0;
354 353
355 if ((irq_mask & TPM_INTF_STS_VALID_INT) == TPM_INTF_STS_VALID_INT) 354 if ((irq_mask & TPM_INTF_STS_VALID_INT) == TPM_INTF_STS_VALID_INT)
356 status |= TPM_STS_VALID; 355 status |= TPM_STS_VALID;
357 if ((irq_mask & TPM_INTF_DATA_AVAIL_INT) == TPM_INTF_DATA_AVAIL_INT) 356 if ((irq_mask & TPM_INTF_DATA_AVAIL_INT) == TPM_INTF_DATA_AVAIL_INT)
358 status |= TPM_STS_DATA_AVAIL; 357 status |= TPM_STS_DATA_AVAIL;
@@ -573,7 +572,7 @@ out_err:
573 * @param: buf, the buffer to store datas. 572 * @param: buf, the buffer to store datas.
574 * @param: count, the number of bytes to send. 573 * @param: count, the number of bytes to send.
575 * @return: In case of success the number of bytes received. 574 * @return: In case of success the number of bytes received.
576 * In other case, a < 0 value describing the issue. 575 * In other case, a < 0 value describing the issue.
577 */ 576 */
578static int tpm_stm_i2c_recv(struct tpm_chip *chip, unsigned char *buf, 577static int tpm_stm_i2c_recv(struct tpm_chip *chip, unsigned char *buf,
579 size_t count) 578 size_t count)
@@ -636,7 +635,6 @@ static int tpm_stm_i2c_of_request_resources(struct tpm_chip *chip)
636 struct device_node *pp; 635 struct device_node *pp;
637 struct tpm_stm_dev *tpm_dev = (struct tpm_stm_dev *)TPM_VPRIV(chip); 636 struct tpm_stm_dev *tpm_dev = (struct tpm_stm_dev *)TPM_VPRIV(chip);
638 struct i2c_client *client = tpm_dev->client; 637 struct i2c_client *client = tpm_dev->client;
639
640 int gpio; 638 int gpio;
641 int ret; 639 int ret;
642 640
@@ -849,7 +847,7 @@ static int tpm_stm_i2c_pm_suspend(struct device *dev)
849 ret = tpm_pm_suspend(dev); 847 ret = tpm_pm_suspend(dev);
850 848
851 return ret; 849 return ret;
852} /* tpm_stm_i2c_suspend() */ 850} /* tpm_stm_i2c_suspend() */
853 851
854/* 852/*
855 * tpm_stm_i2c_pm_resume resume the TPM device 853 * tpm_stm_i2c_pm_resume resume the TPM device