diff options
| author | Ilpo Järvinen <[email protected]> | 2022-08-16 11:57:39 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-08-30 12:22:35 +0000 |
| commit | a8c11c1520347be74b02312d10ef686b01b525f1 (patch) | |
| tree | 844ac1616819548ea62f687e6a97fcdd752f7738 /drivers/usb/class/cdc-acm.c | |
| parent | usb: serial: Make ->set_termios() old ktermios const (diff) | |
| download | kernel-a8c11c1520347be74b02312d10ef686b01b525f1.tar.gz kernel-a8c11c1520347be74b02312d10ef686b01b525f1.zip | |
tty: 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 <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
| -rw-r--r-- | drivers/usb/class/cdc-acm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 483bcb1213f7..46dbf907e4b5 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -51,7 +51,7 @@ static DEFINE_IDR(acm_minors); static DEFINE_MUTEX(acm_minors_lock); static void acm_tty_set_termios(struct tty_struct *tty, - struct ktermios *termios_old); + const struct ktermios *termios_old); /* * acm_minors accessors @@ -1049,7 +1049,7 @@ static int acm_tty_ioctl(struct tty_struct *tty, } static void acm_tty_set_termios(struct tty_struct *tty, - struct ktermios *termios_old) + const struct ktermios *termios_old) { struct acm *acm = tty->driver_data; struct ktermios *termios = &tty->termios; |
