drivers/tty/serial/ingenic_uart.c: At top level:
drivers/tty/serial/ingenic_uart.c:981:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.set_termios = serial_ingenic_set_termios,//change para of endport
^~~~~~~~~~~~~~~~~~~~~~~~~~
commit f6d47fe5921a6d3f5a1a3d0b9a3dd34b8e295722
Author: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Date: Tue Aug 16 14:57:38 2022 +0300
usb: serial: Make ->set_termios() old ktermios const
There should be no reason to adjust old ktermios which is going to get
discarded anyway.
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220816115739.10928-8-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[...]
- void (*set_termios)(struct tty_struct *tty,
- struct usb_serial_port *port, struct ktermios *old);
+ void (*set_termios)(struct tty_struct *tty, struct usb_serial_port *port,
+ const struct ktermios *old);