diff options
author | Kylene Jo Hall <kjhall@us.ibm.com> | 2006-04-22 05:37:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-22 12:19:53 -0400 |
commit | e0dd03caf20d040a0a86b6bd74028ec9bda545f5 (patch) | |
tree | fe65a043531f3b896f5dba08bbb8ae385332f7d1 /drivers/char/tpm/tpm.h | |
parent | 90dda520c1962d55a0e1d2571deed0d75fd6d6f1 (diff) |
[PATCH] tpm: return chip from tpm_register_hardware
Changes in the 1.2 TPM Specification make it necessary to update some fields
of the chip structure in the initialization function after it is registered
with tpm.c thus tpm_register_hardware was modified to return a pointer to the
structure. This patch makes that change and the associated changes in
tpm_atmel and tpm_nsc. The changes to tpm_infineon will be coming in a patch
from Marcel Selhorst.
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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index a203963efaab..4f005345bf37 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h | |||
@@ -48,9 +48,9 @@ extern ssize_t tpm_store_cancel(struct device *, struct device_attribute *attr, | |||
48 | struct tpm_chip; | 48 | struct tpm_chip; |
49 | 49 | ||
50 | struct tpm_vendor_specific { | 50 | struct tpm_vendor_specific { |
51 | u8 req_complete_mask; | 51 | const u8 req_complete_mask; |
52 | u8 req_complete_val; | 52 | const u8 req_complete_val; |
53 | u8 req_canceled; | 53 | const u8 req_canceled; |
54 | void __iomem *iobase; /* ioremapped address */ | 54 | void __iomem *iobase; /* ioremapped address */ |
55 | unsigned long base; /* TPM base address */ | 55 | unsigned long base; /* TPM base address */ |
56 | 56 | ||
@@ -100,8 +100,8 @@ static inline void tpm_write_index(int base, int index, int value) | |||
100 | outb(value & 0xFF, base+1); | 100 | outb(value & 0xFF, base+1); |
101 | } | 101 | } |
102 | 102 | ||
103 | extern int tpm_register_hardware(struct device *, | 103 | extern struct tpm_chip* tpm_register_hardware(struct device *, |
104 | struct tpm_vendor_specific *); | 104 | const struct tpm_vendor_specific *); |
105 | extern int tpm_open(struct inode *, struct file *); | 105 | extern int tpm_open(struct inode *, struct file *); |
106 | extern int tpm_release(struct inode *, struct file *); | 106 | extern int tpm_release(struct inode *, struct file *); |
107 | extern ssize_t tpm_write(struct file *, const char __user *, size_t, | 107 | extern ssize_t tpm_write(struct file *, const char __user *, size_t, |