mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user