diff options
author | Simon Glass <sjg@chromium.org> | 2015-10-18 21:17:14 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-19 20:13:40 -0700 |
commit | 745009c4d081a9fb5504ce3e97b39e92cbe77ef4 (patch) | |
tree | 695ac969565a22a06a78303185a117f4cc345507 /include | |
parent | 66877b0f5fc96906d70f1264b3b8102d2156360f (diff) | |
download | u-boot-imx-745009c4d081a9fb5504ce3e97b39e92cbe77ef4.zip u-boot-imx-745009c4d081a9fb5504ce3e97b39e92cbe77ef4.tar.gz u-boot-imx-745009c4d081a9fb5504ce3e97b39e92cbe77ef4.tar.bz2 |
cros_ec: Use udevice instead of cros_ec_dev for keyboard functions
In preparation for converting the cros_ec keyboard driver to driver model,
adjust the cros_ec functions it will use to use a normal struct udevice.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/cros_ec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h index b926934..5fa5f6f 100644 --- a/include/cros_ec.h +++ b/include/cros_ec.h @@ -81,7 +81,7 @@ int cros_ec_read_id(struct cros_ec_dev *dev, char *id, int maxlen); * @param scan Place to put the scan results * @return 0 if ok, -1 on error */ -int cros_ec_scan_keyboard(struct cros_ec_dev *dev, struct mbkp_keyscan *scan); +int cros_ec_scan_keyboard(struct udevice *dev, struct mbkp_keyscan *scan); /** * Read which image is currently running on the CROS-EC device. @@ -125,7 +125,7 @@ int cros_ec_reboot(struct cros_ec_dev *dev, enum ec_reboot_cmd cmd, * @param dev CROS-EC device * @return 0 if no interrupt is pending */ -int cros_ec_interrupt_pending(struct cros_ec_dev *dev); +int cros_ec_interrupt_pending(struct udevice *dev); enum { CROS_EC_OK, |