kernel_optimize_test/drivers/char/tpm
Peter Huewe 0a4182692e tpm: cleanup checkpatch warnings
before we rename the file it might be a good idea to cleanup the long
persisting checkpatch warnings.
Since everything is really trivial, splitting the patch up would only
result in noise.

For the interested reader - here the checkpatch warnings:
(regrouped for easer readability)

ERROR: trailing whitespace
+ * Specifications at www.trustedcomputinggroup.org^I $
+ * $
+^I/* $
+^I   parameters (RSA 12->bytes: keybit, #primes, expbit)  $

WARNING: unnecessary whitespace before a quoted newline
+			"invalid count value %x %zx \n", count, bufsiz);

ERROR: do not use assignment in if condition
+	if ((rc = chip->vendor.send(chip, (u8 *) buf, count)) < 0) {

ERROR: space required after that ',' (ctx:VxV)
+	len = tpm_transmit(chip,(u8 *) cmd, len);
 	                       ^

ERROR: "foo * bar" should be "foo *bar"
+ssize_t tpm_show_enabled(struct device * dev, struct device_attribute * attr,
+ssize_t tpm_show_enabled(struct device * dev, struct device_attribute * attr,
+ssize_t tpm_show_active(struct device * dev, struct device_attribute * attr,
+ssize_t tpm_show_active(struct device * dev, struct device_attribute * attr,
+ssize_t tpm_show_owned(struct device * dev, struct device_attribute * attr,
+ssize_t tpm_show_owned(struct device * dev, struct device_attribute * attr,
+ssize_t tpm_show_temp_deactivated(struct device * dev,
+				struct device_attribute * attr, char *buf)

WARNING: please, no space before tabs
+ * @chip_num: ^Itpm idx # or ANY$
+ * @res_buf: ^ITPM_PCR value$
+ * ^I^Isize of res_buf is 20 bytes (or NULL if you don't care)$
+ * @chip_num: ^Itpm idx # or AN&$
+ * @hash: ^Ihash value used to extend pcr value$

ERROR: code indent should use tabs where possible
+^I                                     TPM_ORD_CONTINUE_SELFTEST);$

WARNING: line over 80 characters
+static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, bool check_cancel,

ERROR: trailing whitespace
+ * Called from tpm_<specific>.c probe function only for devices $

total: 16 errors, 7 warnings, 1554 lines checked

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
2013-10-22 19:42:48 +02:00
..
Kconfig drivers/xen-tpmfront: Fix compile issue with missing option. 2013-08-30 13:24:14 -04:00
Makefile
tpm_acpi.c
tpm_atmel.c tpm atmel: Call request_region with the correct base 2013-10-22 19:42:26 +02:00
tpm_atmel.h
tpm_eventlog.c
tpm_eventlog.h
tpm_i2c_infineon.c tpm: Remove tpm_show_caps_1_2 2013-10-22 19:42:41 +02:00
tpm_i2c_stm_st33.c tpm: Remove tpm_show_caps_1_2 2013-10-22 19:42:41 +02:00
tpm_i2c_stm_st33.h
tpm_ibmvtpm.c tpm: Remove tpm_show_caps_1_2 2013-10-22 19:42:41 +02:00
tpm_ibmvtpm.h
tpm_infineon.c
tpm_nsc.c
tpm_of.c
tpm_ppi.c
tpm_tis.c tpm: Remove tpm_show_caps_1_2 2013-10-22 19:42:41 +02:00
tpm.c tpm: cleanup checkpatch warnings 2013-10-22 19:42:48 +02:00
tpm.h tpm: Remove tpm_show_caps_1_2 2013-10-22 19:42:41 +02:00
xen-tpmfront.c tpm: Remove redundant dev_set_drvdata 2013-10-22 19:42:35 +02:00