Re: [PATCH 04/23] TPM: Expose struct tpm_chip and related find_get and put functions

Jason Gunthorpe
2018-08-21T21:52:25Z

On Tue, Aug 21, 2018 at 04:57:16PM +0100, David Howells wrote:
> Expose struct tpm_chip and related find_get and put functions so that
> TPM-using code can make sure it uses the same TPM for any related set of
> operations.
>
> Signed-off-by: David Howells <dhowells@redhat.com>
> ---

> drivers/char/tpm/tpm-interface.c | 19 ++++++++++++++++---
> drivers/char/tpm/tpm.h | 5 -----
> include/linux/tpm.h | 10 ++++++++++
> 3 files changed, 26 insertions(+), 8 deletions(-)

I think this is already in the kernel .. Stephen did it.

Jason