]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm: Implement tpm_default_chip() to find a TPM chip
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 26 Jun 2018 19:09:30 +0000 (15:09 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 28 Jul 2018 14:03:11 +0000 (17:03 +0300)
commitaaae81536351f831fe6719e5b4e6afbadc5e5f85
tree3d4c41248a9da034233b08aa88eb76cd88cc067f
parentfc1d52b745bae6108102096d85e743ac33b446f2
tpm: Implement tpm_default_chip() to find a TPM chip

Implement tpm_default_chip() to find the first TPM chip and return it to
the caller while increasing the reference count on its device. This
function can be used by other subsystems, such as IMA, to find the system's
default TPM chip and use it for all subsequent TPM operations.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-chip.c
include/linux/tpm.h