tpm: use tpm_pcr_read_dev() in tpm_do_selftest()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 17 Jun 2016 11:12:20 +0000 (13:12 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 15 Sep 2016 13:04:21 +0000 (16:04 +0300)
commit0c541332231e7957f23013e37f3720db33e7804c
treeb4259aac67199272cbbac3b688fa7a8c79137f12
parentae7e190a3e3498551a1e222eaa84c0ec7e5b41c7
tpm: use tpm_pcr_read_dev() in tpm_do_selftest()

Instead of a ad-hoc protocol message construction it is better to
call tpm_pcr_read_dev().

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
drivers/char/tpm/tpm-interface.c