[U-Boot] [PATCH 18/45] cros: Update cros_ec code to use struct udevice

sjg at google.com sjg at google.com
Tue Oct 9 23:55:18 UTC 2018


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 at chromium.org>
---

 cmd/cros_ec.c                  |  24 +++---
 drivers/misc/cros_ec.c         | 147 +++++++++++++++++----------------
 drivers/misc/cros_ec_sandbox.c |   4 +-
 drivers/tpm/tpm-uclass.c       |   6 +-
 include/cros_ec.h              |  66 +++++++--------
 5 files changed, 122 insertions(+), 125 deletions(-)

Applied to u-boot-dm


More information about the U-Boot mailing list