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-7-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
8b7d2d95cf
commit
bec5b814d4
@ -219,7 +219,7 @@ EXPORT_SYMBOL(tty_wait_until_sent);
|
||||
* Termios Helper Methods
|
||||
*/
|
||||
|
||||
static void unset_locked_termios(struct tty_struct *tty, struct ktermios *old)
|
||||
static void unset_locked_termios(struct tty_struct *tty, const struct ktermios *old)
|
||||
{
|
||||
struct ktermios *termios = &tty->termios;
|
||||
struct ktermios *locked = &tty->termios_locked;
|
||||
|
Reference in New Issue
Block a user