tpm: Clean up reading of timeout and duration capabilities
authorEd Swierk <eswierk@skyportsystems.com>
Mon, 19 Sep 2016 20:22:08 +0000 (23:22 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 27 Nov 2016 23:31:30 +0000 (01:31 +0200)
commitaaa6f7f6c8bf1a056c1bb337578cbb2f0c50c12a
tree999bd883249db0d0ba2897761442237727529d55
parent2c97f6f20cb193264360067259029892c70ce63f
tpm: Clean up reading of timeout and duration capabilities

Call tpm_getcap() from tpm_get_timeouts() to eliminate redundant
code. Return all errors to the caller rather than swallowing them
(e.g. when tpm_transmit_cmd() returns nonzero).

Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c