]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: Convert to use a device parameter
authorSimon Glass <sjg@chromium.org>
Sun, 18 Nov 2018 21:22:27 +0000 (14:22 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:06 +0000 (09:30 -0700)
commitabdc7b8a2d7f2b8527ce4f9133b777942af99126
treee45abe92dc40db0d684f7ed82453504469b99cc3
parent51f00c1704e505f51a02a3687e4384231ce8ae20
tpm: Convert to use a device parameter

At present many TPM calls assume there is only one TPM in the system and
look up this TPM themselves. This is inconsistent with driver model, which
expects all driver methods to have a device parameter. Update the code to
correct this.

Signed-off-by: Simon Glass <sjg@chromium.org>
17 files changed:
board/gdsys/a38x/controlcenterdc.c
board/gdsys/a38x/hre.c
board/gdsys/a38x/hre.h
board/gdsys/a38x/keyprogram.c
board/gdsys/a38x/keyprogram.h
board/gdsys/p1022/controlcenterd-id.c
cmd/tpm-common.c
cmd/tpm-v1.c
cmd/tpm-v2.c
cmd/tpm_test.c
include/tpm-common.h
include/tpm-v1.h
include/tpm-v2.h
lib/tpm-common.c
lib/tpm-utils.h
lib/tpm-v1.c
lib/tpm-v2.c