aboutsummaryrefslogtreecommitdiff
path: root/include/serial.h
diff options
context:
space:
mode:
authorSimon Glass2018-12-28 14:23:10 -0700
committerSimon Glass2019-01-14 17:47:13 -0700
commita61cbad78e67963944e7d719f0aee27b8aef6c02 (patch)
tree5b274a956002e4d7c37e19ae63293015be15f9bc /include/serial.h
parent3de04e771c4b230ad08c7b22871dedf5f69032b9 (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.h2
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);