tpm: consolidate the TPM startup code
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 21 Jun 2017 07:31:34 +0000 (09:31 +0200)
committerJames Morris <james.l.morris@oracle.com>
Thu, 6 Jul 2017 23:49:25 +0000 (09:49 +1000)
commit19cbe4f680b48f950246815b891a66eeb67f7410
tree8b1e0fc6a59db5b4e95171522fac6d7f9439defb
parent5e572cab92f0bb56ca1e6e5ee4d807663a7ccbad
tpm: consolidate the TPM startup code

Consolidated all the "manual" TPM startup code to a single function
in order to make code flows a bit cleaner and migrate to tpm_buf.

Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-cmd.c