OSDN Git Service

tpm: factor out tpm_startup function
authorTomas Winkler <tomas.winkler@intel.com>
Fri, 19 Oct 2018 18:22:58 +0000 (21:22 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 13 Nov 2018 11:46:30 +0000 (13:46 +0200)
commit9db7fe187c54f216fc58deb062fe8bd5dc0e27d8
tree9ec4d9efb52597ec61e09da8f280d730f79cf3a7
parentc82a330ceceda28304e37bab35128fa0c9c7f172
tpm: factor out tpm_startup function

TPM manual startup is used only from within TPM 1.x or TPM 2.x
code, hence remove tpm_startup() function from tpm-interface.c
and add two static functions implementations tpm1_startup()
and tpm2_startup() into to tpm1-cmd.c and tpm2-cmd.c respectively.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm1-cmd.c
drivers/char/tpm/tpm2-cmd.c