mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user