summaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-01-13 23:13:09 +0100
committerPeter Huewe <peterhuewe@gmx.de>2015-01-17 15:04:01 +0100
commitac77d33e91efcccb7b5b555a41481a6d775b6f69 (patch)
treec2412ce7fdbc05a6a44845ea6c752cc179fc8443 /drivers/char/tpm
parentc4eadfafb91d5501095c55ffadaa1168743f39d3 (diff)
downloadop-kernel-dev-ac77d33e91efcccb7b5b555a41481a6d775b6f69.zip
op-kernel-dev-ac77d33e91efcccb7b5b555a41481a6d775b6f69.tar.gz
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>
Diffstat (limited to 'drivers/char/tpm')
-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 4f70296..f05b0a4 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)
return chip->vendor.locality;
return -EACCES;
-
} /* check_locality() */
/*
@@ -352,7 +351,7 @@ static u8 interrupt_to_status(u8 irq_mask)
{
u8 status = 0;
- if ((irq_mask & TPM_INTF_STS_VALID_INT) == TPM_INTF_STS_VALID_INT)
+ if ((irq_mask & TPM_INTF_STS_VALID_INT) == TPM_INTF_STS_VALID_INT)
status |= TPM_STS_VALID;
if ((irq_mask & TPM_INTF_DATA_AVAIL_INT) == TPM_INTF_DATA_AVAIL_INT)
status |= TPM_STS_DATA_AVAIL;
@@ -573,7 +572,7 @@ out_err:
* @param: buf, the buffer to store datas.
* @param: count, the number of bytes to send.
* @return: In case of success the number of bytes received.
- * In other case, a < 0 value describing the issue.
+ * In other case, a < 0 value describing the issue.
*/
static int tpm_stm_i2c_recv(struct tpm_chip *chip, unsigned char *buf,
size_t count)
@@ -636,7 +635,6 @@ static int tpm_stm_i2c_of_request_resources(struct tpm_chip *chip)
struct device_node *pp;
struct tpm_stm_dev *tpm_dev = (struct tpm_stm_dev *)TPM_VPRIV(chip);
struct i2c_client *client = tpm_dev->client;
-
int gpio;
int ret;
@@ -849,7 +847,7 @@ static int tpm_stm_i2c_pm_suspend(struct device *dev)
ret = tpm_pm_suspend(dev);
return ret;
-} /* tpm_stm_i2c_suspend() */
+} /* tpm_stm_i2c_suspend() */
/*
* tpm_stm_i2c_pm_resume resume the TPM device
OpenPOWER on IntegriCloud