diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 21:22:22 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 13:40:27 +0300 |
commit | 6322a7b63fb74d0f9ba5d027ef8299df7f796498 (patch) | |
tree | 95de368757d23feb5f1dba8f00b792c1f9c6db59 /drivers/tpm/tpm-uclass.c | |
parent | 5592a633a09019d7c34b76a2cd3babff63e138ea (diff) | |
download | u-boot-6322a7b63fb74d0f9ba5d027ef8299df7f796498.tar.xz |
cros: Update cros_ec code to use struct udevice
At present we pass around a private pointer to specify the cros_ec device.
With driver model it makes more sense to pass the device. Update the code
to do this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/tpm/tpm-uclass.c')
-rw-r--r-- | drivers/tpm/tpm-uclass.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c index c83f53ab86..80fa0783d5 100644 --- a/drivers/tpm/tpm-uclass.c +++ b/drivers/tpm/tpm-uclass.c @@ -126,8 +126,8 @@ int tpm_xfer(struct udevice *dev, const uint8_t *sendbuf, size_t send_size, } UCLASS_DRIVER(tpm) = { - .id = UCLASS_TPM, - .name = "tpm", - .flags = DM_UC_FLAG_SEQ_ALIAS, + .id = UCLASS_TPM, + .name = "tpm", + .flags = DM_UC_FLAG_SEQ_ALIAS, .per_device_auto_alloc_size = sizeof(struct tpm_chip_priv), }; |