tpm: define a generic open() method for ascii & bios measurements
authorNayna Jain <nayna@linux.vnet.ibm.com>
Wed, 19 Oct 2016 00:49:39 +0000 (20:49 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 27 Nov 2016 23:31:31 +0000 (01:31 +0200)
commit2528a64664f8a463d85b6e6876b4025042687553
treeed67f57b65b3b4ba2a2b6c2a180abf84ab0b88f5
parentf45aac38c8b754bd4aa74b5ec4fedc0ff39e2cb3
tpm: define a generic open() method for ascii & bios measurements

open() method for event log ascii and binary bios measurements file
operations are very similar. This patch refactors the code into a
single open() call by passing seq_operations as i_node->private data.

Suggested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Nayna Jain <nayna@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_eventlog.c