diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2013-11-27 00:30:45 +0400 |
---|---|---|
committer | Peter Huewe <peterhuewe@gmx.de> | 2014-01-06 17:37:25 +0400 |
commit | e3302e0d6dcc02f369ecdc01c8392a28f14c0cba (patch) | |
tree | e0e0b6aa43cd6c9a59c77a6492c4db503a1078e5 /drivers/char/tpm/tpm.h | |
parent | 5f82e9f00417b92a108ccf0f0f5ebd53205d81ed (diff) | |
download | linux-e3302e0d6dcc02f369ecdc01c8392a28f14c0cba.tar.xz |
tpm: Make tpm-dev allocate a per-file structure
This consolidates everything that is only used within tpm-dev.c
into tpm-dev.c and out of the publicly visible struct tpm_chip.
The per-file allocation lays the ground work for someday fixing the
strange forced O_EXCL behaviour of the current code.
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Reviewed-by: Ashley Lai <adlai@linux.vnet.ibm.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 7b0a46e214c5..e4d0888d2eab 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -103,13 +103,6 @@ struct tpm_chip { unsigned long is_open; /* only one allowed */ int time_expired; - /* Data passed to and from the tpm via the read/write calls */ - u8 *data_buffer; - atomic_t data_pending; - struct mutex buffer_mutex; - - struct timer_list user_read_timer; /* user needs to claim result */ - struct work_struct work; struct mutex tpm_mutex; /* tpm is processing */ struct tpm_vendor_specific vendor; |