tpm: tpm1: rewrite tpm1_get_random() using tpm_buf structure
authorTomas Winkler <tomas.winkler@intel.com>
Fri, 19 Oct 2018 18:23:02 +0000 (21:23 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 13 Nov 2018 11:46:31 +0000 (13:46 +0200)
commit7aee9c52d7ac90e19705bf3b429caa51f105174a
treee633bee34e1452e8cd5705b45bcaaa2a0118ec37
parentc22780ff0c764ca25488a41b1f8a629e6aa545da
tpm: tpm1: rewrite tpm1_get_random() using tpm_buf structure

1. Use tpm_buf in tpm1_get_random()
2. Fix comment in tpm_get_random() so it is clear that
the function is expected to return number of random bytes.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.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
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm1-cmd.c