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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bec5b814d4
commit
f6d47fe592
@@ -616,7 +616,8 @@ static void keyspan_break_ctl(struct tty_struct *tty, int break_state)
|
||||
|
||||
|
||||
static void keyspan_set_termios(struct tty_struct *tty,
|
||||
struct usb_serial_port *port, struct ktermios *old_termios)
|
||||
struct usb_serial_port *port,
|
||||
const struct ktermios *old_termios)
|
||||
{
|
||||
int baud_rate, device_port;
|
||||
struct keyspan_port_private *p_priv;
|
||||
|
||||
Reference in New Issue
Block a user