]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/char/tpm/tpm-dev-common.c
tpm: encapsulate tpm_dev_transmit()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 3 Nov 2018 02:46:50 +0000 (04:46 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:47:49 +0000 (09:47 +0200)
commitc4df71d43a5beaab5fe13a8d8974f77596bb2a22
treeffc5163c1b6971790b42ef94b826bb8781fe519a
parent720b071102d8fab3f0a2808db3ba76c5ce880b7a
tpm: encapsulate tpm_dev_transmit()

Encapsulate tpm_transmit() call pattern to tpm_dev_transmit() because it
is identically used from two places. Use unlocked version of
tpm_transmit() so that we are able to move the calls to
tpm2_prepare_space() and tpm2_commit_space() later on to this new
function.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Alexander Steffen <Alexander.Steffen@infineon.com>
drivers/char/tpm/tpm-dev-common.c