tpm: move tpm_chip definition to include/linux/tpm.h
authorRoberto Sassu <roberto.sassu@huawei.com>
Wed, 6 Feb 2019 16:24:50 +0000 (17:24 +0100)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:51 +0000 (09:48 +0200)
commit901615cb916dc955fb7bda4e34402bf263532e4a
treeaf217a92b23d5288074251d6735978375f1785c6
parent879b589210a9a0c9f77d301aaf0ddee20f2c5052
tpm: move tpm_chip definition to include/linux/tpm.h

The tpm_chip structure contains the list of PCR banks currently allocated
in the TPM. When support for crypto agility will be added to the TPM
driver, users of the driver have to provide a digest for each allocated
bank to tpm_pcr_extend(). With this patch, they can obtain the PCR bank
algorithms directly from chip->allocated_banks.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm.h
include/linux/tpm.h