tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter
Since we pass an initialized struct tpm_buf instance in every call site now, it is cleaner to pass that directly to the tpm_transmit_cmd() as the TPM command/response buffer. Fine-tune a little bit tpm_transmit() and tpm_transmit_cmd() comments while doing this. 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>
Showing
- drivers/char/tpm/tpm-interface.c 36 additions, 31 deletionsdrivers/char/tpm/tpm-interface.c
- drivers/char/tpm/tpm-sysfs.c 1 addition, 1 deletiondrivers/char/tpm/tpm-sysfs.c
- drivers/char/tpm/tpm.h 2 additions, 3 deletionsdrivers/char/tpm/tpm.h
- drivers/char/tpm/tpm1-cmd.c 7 additions, 19 deletionsdrivers/char/tpm/tpm1-cmd.c
- drivers/char/tpm/tpm2-cmd.c 15 additions, 22 deletionsdrivers/char/tpm/tpm2-cmd.c
- drivers/char/tpm/tpm2-space.c 2 additions, 2 deletionsdrivers/char/tpm/tpm2-space.c
- drivers/char/tpm/tpm_vtpm_proxy.c 1 addition, 2 deletionsdrivers/char/tpm/tpm_vtpm_proxy.c
Loading
Please register or sign in to comment