aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r--drivers/char/tpm/tpm.h10
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,
48struct tpm_chip; 48struct tpm_chip;
49 49
50struct tpm_vendor_specific { 50struct 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
103extern int tpm_register_hardware(struct device *, 103extern struct tpm_chip* tpm_register_hardware(struct device *,
104 struct tpm_vendor_specific *); 104 const struct tpm_vendor_specific *);
105extern int tpm_open(struct inode *, struct file *); 105extern int tpm_open(struct inode *, struct file *);
106extern int tpm_release(struct inode *, struct file *); 106extern int tpm_release(struct inode *, struct file *);
107extern ssize_t tpm_write(struct file *, const char __user *, size_t, 107extern ssize_t tpm_write(struct file *, const char __user *, size_t,