-
- Downloads
tpm: use struct tpm_chip for tpm_chip_find_get()
Device number (the character device index) is not a stable identifier for a TPM chip. That is the reason why every call site passes TPM_ANY_NUM to tpm_chip_find_get(). This commit changes the API in a way that instead a struct tpm_chip instance is given and NULL means the default chip. In addition, this commit refines the documentation to be up to date with the implementation. Suggested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> (@chip_num -> @chip part) Signed-off-by:Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by:
Jason Gunthorpe <jgg@ziepe.ca> Tested-by:
PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Showing
- drivers/char/hw_random/tpm-rng.c 1 addition, 1 deletiondrivers/char/hw_random/tpm-rng.c
- drivers/char/tpm/tpm-chip.c 14 additions, 10 deletionsdrivers/char/tpm/tpm-chip.c
- drivers/char/tpm/tpm-interface.c 71 additions, 64 deletionsdrivers/char/tpm/tpm-interface.c
- drivers/char/tpm/tpm.h 1 addition, 1 deletiondrivers/char/tpm/tpm.h
- include/linux/tpm.h 19 additions, 19 deletionsinclude/linux/tpm.h
- security/integrity/ima/ima_crypto.c 1 addition, 1 deletionsecurity/integrity/ima/ima_crypto.c
- security/integrity/ima/ima_init.c 1 addition, 1 deletionsecurity/integrity/ima/ima_init.c
- security/integrity/ima/ima_queue.c 1 addition, 1 deletionsecurity/integrity/ima/ima_queue.c
- security/keys/trusted.c 17 additions, 18 deletionssecurity/keys/trusted.c
Loading
Please register or sign in to comment