diff options
| author | Ilpo Järvinen <[email protected]> | 2022-08-16 11:57:37 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-08-30 12:22:35 +0000 |
| commit | bec5b814d46c2a704c3c8148752e62a33e9fa6dc (patch) | |
| tree | 1d7320169fd0c34a82960a0bb0974ccf4a656310 /drivers/tty/serial/sccnxp.c | |
| parent | tty: Make ldisc ->set_termios() old ktermios const (diff) | |
| download | kernel-bec5b814d46c2a704c3c8148752e62a33e9fa6dc.tar.gz kernel-bec5b814d46c2a704c3c8148752e62a33e9fa6dc.zip | |
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 <[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/tty/serial/sccnxp.c')
| -rw-r--r-- | drivers/tty/serial/sccnxp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index c56de2e104d4..dd98509f52e5 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c @@ -636,7 +636,8 @@ static void sccnxp_break_ctl(struct uart_port *port, int break_state) } static void sccnxp_set_termios(struct uart_port *port, - struct ktermios *termios, struct ktermios *old) + struct ktermios *termios, + const struct ktermios *old) { struct sccnxp_port *s = dev_get_drvdata(port->dev); unsigned long flags; |
