diff options
author | Simon Glass <sjg@chromium.org> | 2018-12-28 14:23:08 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-01-14 17:47:13 -0700 |
commit | 67d1b0513079049baa3e0e38603eb33a3857af5d (patch) | |
tree | 7cfee737937dd1d74d9f60e86a808970f382b19e /include/serial.h | |
parent | 0171f432047e86305593bb1eb1cc86f853e55029 (diff) | |
download | u-boot-67d1b0513079049baa3e0e38603eb33a3857af5d.tar.gz u-boot-67d1b0513079049baa3e0e38603eb33a3857af5d.tar.bz2 u-boot-67d1b0513079049baa3e0e38603eb33a3857af5d.zip |
dm: serial: Adjust serial_getconfig() to use proper API
All driver-model functions should have a device as the first parameter.
Update this function accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'include/serial.h')
-rw-r--r-- | include/serial.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/serial.h b/include/serial.h index fa7e0130bd..5ba031ab53 100644 --- a/include/serial.h +++ b/include/serial.h @@ -281,7 +281,7 @@ struct serial_dev_priv { /* Access the serial operations for a device */ #define serial_get_ops(dev) ((struct dm_serial_ops *)(dev)->driver->ops) -int serial_getconfig(uint *config); +int serial_getconfig(struct udevice *dev, uint *config); int serial_setconfig(uint config); int serial_getinfo(struct serial_device_info *info); |