diff options
author | Simon Glass <sjg@chromium.org> | 2018-12-28 14:23:09 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-01-14 17:47:13 -0700 |
commit | 3de04e771c4b230ad08c7b22871dedf5f69032b9 (patch) | |
tree | e8e0bac50268aea26f79ff13e6b70aff85c7e46c /include/serial.h | |
parent | 67d1b0513079049baa3e0e38603eb33a3857af5d (diff) | |
download | u-boot-3de04e771c4b230ad08c7b22871dedf5f69032b9.tar.gz |
dm: serial: Adjust serial_setconfig() 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 5ba031ab53..8a05a09089 100644 --- a/include/serial.h +++ b/include/serial.h @@ -282,7 +282,7 @@ struct serial_dev_priv { #define serial_get_ops(dev) ((struct dm_serial_ops *)(dev)->driver->ops) int serial_getconfig(struct udevice *dev, uint *config); -int serial_setconfig(uint config); +int serial_setconfig(struct udevice *dev, uint config); int serial_getinfo(struct serial_device_info *info); void atmel_serial_initialize(void); |