char/tpm: fixed white spaces coding style issues
authorBruno E O Meneguele <bmeneguele@gmail.com>
Sat, 17 Jan 2015 16:03:30 +0000 (17:03 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Sun, 18 Jan 2015 13:26:49 +0000 (14:26 +0100)
Fixed some coding style issues reported by checkpatch.

Signed-off-by: Bruno E O Meneguele <bmeneguele@gmail.com>
[phuewe: ported to latest code]
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_i2c_stm_st33.c

index cc421cfde389d836e5acf5e6b0d6017b5a8b9f60..7b0727c5e803ee9de9ded68da4563a099836e743 100644 (file)
  * Maintained by: <tpmdd-devel@lists.sourceforge.net>
  *
  * Device driver for TCG/TCPA TPM (trusted platform module).
- * Specifications at www.trustedcomputinggroup.org      
+ * Specifications at www.trustedcomputinggroup.org
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
  * published by the Free Software Foundation, version 2 of the
  * License.
- * 
+ *
  */
 #include <linux/module.h>
 #include <linux/delay.h>
@@ -141,7 +141,7 @@ struct tpm_vendor_specific {
        u16 manufacturer_id;
 };
 
-#define TPM_VPRIV(c)   (c)->vendor.priv
+#define TPM_VPRIV(c)     ((c)->vendor.priv)
 
 #define TPM_VID_INTEL    0x8086
 #define TPM_VID_WINBOND  0x1050
index dbab8d0d875eca2c1c3a86478c1e8f1df609cf58..612845b36c299ee52b6be16e7506ec236655844e 100644 (file)
@@ -777,7 +777,7 @@ tpm_stm_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
                                IRQF_TRIGGER_HIGH,
                                "TPM SERIRQ management", chip);
                if (ret < 0) {
-                       dev_err(chip->pdev , "TPM SERIRQ signals %d not available\n",
+                       dev_err(chip->pdev, "TPM SERIRQ signals %d not available\n",
                                client->irq);
                        goto _tpm_clean_answer;
                }