diff options
author | Kylene Hall <kjhall@us.ibm.com> | 2005-06-24 05:01:48 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 07:05:24 (GMT) |
commit | 3122a88a242454efe72930e56a3e4d56ee534f3c (patch) | |
tree | 123d3c91c303d77702b392b7ac136312eb0b7ec2 /drivers/char/tpm/tpm.h | |
parent | 700d8bdcd0fa815b08638b1e4d43b66d60cc6a8d (diff) | |
download | linux-fsl-qoriq-3122a88a242454efe72930e56a3e4d56ee534f3c.tar.xz |
[PATCH] tpm: Fix concerns with TPM driver -- use enums
Convert #defines to named enums where that preference has been indicated by
other kernel developers.
Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 3c4ee43..1a94a8c 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -25,11 +25,16 @@ #include <linux/fs.h> #include <linux/miscdevice.h> -#define TPM_TIMEOUT 5 /* msecs */ +enum tpm_timeout { + TPM_TIMEOUT = 5, /* msecs */ +}; /* TPM addresses */ -#define TPM_ADDR 0x4E -#define TPM_DATA 0x4F +enum tpm_addr { + TPM_ADDR = 0x4E, + TPM_DATA = 0x4F +}; + struct tpm_chip; |