mxser: extract mxser_ioctl_op_mode
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:44 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:01 +0000 (13:10 +0200)
commit9fae5f857e124e843c7a41a04a49b3f9256a2d77
tree6596558dab563f52310f99ef1ee3f32b1efc5cb5
parent2c21832b55dd6f2c5be48133997b6614c1e6327b
mxser: extract mxser_ioctl_op_mode

This ioctl code sets RS232, RS422 or RS485 mode. Move the code to a
separate function (mxser_ioctl_op_mode) with a note that these
mxser-special ioctls should be likely replaced eventually by TIOCGRS485
and TIOCSRS485.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-39-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c