tty: refactor TIOCSSERIAL handling
authorJohan Hovold <johan@kernel.org>
Wed, 7 Apr 2021 09:52:05 +0000 (11:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 08:36:34 +0000 (10:36 +0200)
commit885c77d528e14df86c1e146541c57f1c0ce0708e
tree19cdc5f281efc1db323e8c31899dfaa5d354e866
parent1b7bc6b10a7eab0f5f9d7d8ee5a4b230a9dcb487
tty: refactor TIOCSSERIAL handling

Factor out the deprecated serial flags handling and tty-operation check
shared with the compat TIOCSSERIAL handler.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407095208.31838-6-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c