aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/tpm-rng.c
diff options
context:
space:
mode:
authorKent Yoder <key@linux.vnet.ibm.com>2012-06-07 13:47:14 -0500
committerKent Yoder <key@linux.vnet.ibm.com>2012-08-22 11:11:33 -0500
commit41ab999c80f1d368f32a2554ba8f44feff26f54d (patch)
tree8d53970a210364e19ecbdc05f6d8c8f88e6aadbf /drivers/char/hw_random/tpm-rng.c
parenttpm: modularize event log collection (diff)
downloadlinux-dev-41ab999c80f1d368f32a2554ba8f44feff26f54d.tar.xz
linux-dev-41ab999c80f1d368f32a2554ba8f44feff26f54d.zip
tpm: Move tpm_get_random api into the TPM device driver
Move the tpm_get_random api from the trusted keys code into the TPM device driver itself so that other callers can make use of it. Also, change the api slightly so that the number of bytes read is returned in the call, since the TPM command can potentially return fewer bytes than requested. Acked-by: David Safford <safford@linux.vnet.ibm.com> Reviewed-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/char/hw_random/tpm-rng.c')
0 files changed, 0 insertions, 0 deletions