Skip to content
Snippets Groups Projects
Commit aad887f6 authored by Jarkko Sakkinen's avatar Jarkko Sakkinen
Browse files

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: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@ziepe.ca>
Tested-by: default avatarPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
parent 58cc1e4f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment