diff options
Diffstat (limited to 'drivers/char/tpm/tpm.c')
-rw-r--r-- | drivers/char/tpm/tpm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index 5a3870477ef1..379c5d465579 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c | |||
@@ -46,7 +46,7 @@ static void user_reader_timeout(unsigned long ptr) | |||
46 | schedule_work(&chip->work); | 46 | schedule_work(&chip->work); |
47 | } | 47 | } |
48 | 48 | ||
49 | static void timeout_work(void * ptr) | 49 | static void timeout_work(void *ptr) |
50 | { | 50 | { |
51 | struct tpm_chip *chip = ptr; | 51 | struct tpm_chip *chip = ptr; |
52 | 52 | ||
@@ -387,7 +387,7 @@ int tpm_release(struct inode *inode, struct file *file) | |||
387 | EXPORT_SYMBOL_GPL(tpm_release); | 387 | EXPORT_SYMBOL_GPL(tpm_release); |
388 | 388 | ||
389 | ssize_t tpm_write(struct file *file, const char __user *buf, | 389 | ssize_t tpm_write(struct file *file, const char __user *buf, |
390 | size_t size, loff_t * off) | 390 | size_t size, loff_t *off) |
391 | { | 391 | { |
392 | struct tpm_chip *chip = file->private_data; | 392 | struct tpm_chip *chip = file->private_data; |
393 | int in_size = size, out_size; | 393 | int in_size = size, out_size; |
@@ -419,11 +419,10 @@ ssize_t tpm_write(struct file *file, const char __user *buf, | |||
419 | 419 | ||
420 | return in_size; | 420 | return in_size; |
421 | } | 421 | } |
422 | |||
423 | EXPORT_SYMBOL_GPL(tpm_write); | 422 | EXPORT_SYMBOL_GPL(tpm_write); |
424 | 423 | ||
425 | ssize_t tpm_read(struct file * file, char __user *buf, | 424 | ssize_t tpm_read(struct file *file, char __user *buf, |
426 | size_t size, loff_t * off) | 425 | size_t size, loff_t *off) |
427 | { | 426 | { |
428 | struct tpm_chip *chip = file->private_data; | 427 | struct tpm_chip *chip = file->private_data; |
429 | int ret_size; | 428 | int ret_size; |