From 08225b978f7dd6fa0e232f3d657a0b131757a8f2 Mon Sep 17 00:00:00 2001 From: Nicolas Nytko Date: Mon, 13 Feb 2023 08:36:39 -0600 Subject: [PATCH] Change set_termios handler to take const arg --- driver/ch341.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/ch341.c b/driver/ch341.c index 755e02e..5523fc4 100644 --- a/driver/ch341.c +++ b/driver/ch341.c @@ -68,7 +68,7 @@ static DEFINE_IDR(ch341_minors); static DEFINE_MUTEX(ch341_minors_lock); static void ch341_tty_set_termios(struct tty_struct *tty, - struct ktermios *termios_old); + const struct ktermios *termios_old); /* * ch341_minors accessors @@ -1077,7 +1077,7 @@ static int ch341_get(unsigned int baval, } static void ch341_tty_set_termios(struct tty_struct *tty, - struct ktermios *termios_old) + const struct ktermios *termios_old) { struct ch341 *ch341 = tty->driver_data; struct ktermios *termios = &tty->termios;