diff options
author | Johan Hovold <johan@kernel.org> | 2018-05-21 13:08:44 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2018-05-22 10:08:05 +0200 |
commit | 7b0c6b38c4f9f9736ccd41363b3cfd7143e1f823 (patch) | |
tree | 156c532f1176791fe7e09e51f61a2c473c327e91 /drivers/tty/tty_ioctl.c | |
parent | df1cd63d6d112e4a1402166dacc411ccca9b09ac (diff) | |
download | linux-7b0c6b38c4f9f9736ccd41363b3cfd7143e1f823.tar.bz2 |
tty: add missing const to termios hw-change helper
Add missing const qualifiers to the parameters of the termios hw-change
helper, which is used by a few USB serial drivers. This specifically
allows the pl2303 driver to use const arguments in one of its helper as
well.
Cc: Jiri Slaby <jslaby@suse.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/tty/tty_ioctl.c')
-rw-r--r-- | drivers/tty/tty_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index d9b561d89432..d99fec44036c 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c @@ -290,7 +290,7 @@ EXPORT_SYMBOL(tty_termios_copy_hw); * between the two termios structures, or a speed change is needed. */ -int tty_termios_hw_change(struct ktermios *a, struct ktermios *b) +int tty_termios_hw_change(const struct ktermios *a, const struct ktermios *b) { if (a->c_ispeed != b->c_ispeed || a->c_ospeed != b->c_ospeed) return 1; |