aboutsummaryrefslogtreecommitdiff
path: root/include/cros_ec.h
diff options
context:
space:
mode:
authorSimon Glass2018-10-01 12:22:23 -0600
committerSimon Glass2018-10-09 04:40:27 -0600
commit42116f644b33d4c9e7b495ec87612aa922452453 (patch)
tree1128a1d6df8dd4e624c1dd1524af955f955822a9 /include/cros_ec.h
parent6322a7b63fb74d0f9ba5d027ef8299df7f796498 (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 'include/cros_ec.h')
-rw-r--r--include/cros_ec.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index afd99aae946..5576bcf32ee 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -208,11 +208,9 @@ int cros_ec_flash_update_rw(struct udevice *dev, const uint8_t *image,
/**
* Return a pointer to the board's CROS-EC device
*
- * This should be implemented by board files.
- *
* @return pointer to CROS-EC device, or NULL if none is available
*/
-struct cros_ec_dev *board_get_cros_ec_dev(void);
+struct udevice *board_get_cros_ec_dev(void);
struct dm_cros_ec_ops {
int (*check_version)(struct udevice *dev);