diff options
author | Simon Glass | 2018-12-28 14:23:10 -0700 |
---|---|---|
committer | Simon Glass | 2019-01-14 17:47:13 -0700 |
commit | a61cbad78e67963944e7d719f0aee27b8aef6c02 (patch) | |
tree | 5b274a956002e4d7c37e19ae63293015be15f9bc /include/serial.h | |
parent | 3de04e771c4b230ad08c7b22871dedf5f69032b9 (diff) |
dm: serial: Adjust serial_getinfo() 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 8a05a090898..8a790ccaaf4 100644 --- a/include/serial.h +++ b/include/serial.h @@ -283,7 +283,7 @@ struct serial_dev_priv { int serial_getconfig(struct udevice *dev, uint *config); int serial_setconfig(struct udevice *dev, uint config); -int serial_getinfo(struct serial_device_info *info); +int serial_getinfo(struct udevice *dev, struct serial_device_info *info); void atmel_serial_initialize(void); void mcf_serial_initialize(void); |