diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 12:22:23 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:27 -0600 |
commit | 42116f644b33d4c9e7b495ec87612aa922452453 (patch) | |
tree | 1128a1d6df8dd4e624c1dd1524af955f955822a9 /common/cros_ec.c | |
parent | 6322a7b63fb74d0f9ba5d027ef8299df7f796498 (diff) |
cros: Adjust board_get_cros_ec_dev() to return a udevice
Rather than returning what is effectively an internal data structure,
return the cros EC device itself.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/cros_ec.c')
-rw-r--r-- | common/cros_ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cros_ec.c b/common/cros_ec.c index 1a0caf80dd..4ca15e19d5 100644 --- a/common/cros_ec.c +++ b/common/cros_ec.c @@ -13,7 +13,7 @@ #include <dm.h> #include <errno.h> -struct cros_ec_dev *board_get_cros_ec_dev(void) +struct udevice *board_get_cros_ec_dev(void) { struct udevice *dev; int ret; @@ -23,7 +23,7 @@ struct cros_ec_dev *board_get_cros_ec_dev(void) debug("%s: Error %d\n", __func__, ret); return NULL; } - return dev_get_uclass_priv(dev); + return dev; } int cros_ec_get_error(void) |