Jiri Slaby 42ad25fc46 mxser: rework and simplify mxser_open
In mxser_open, tty->port is already set thanks to
tty_port_register_device in ->probe. So we can simply use container_of
to deduce the struct mxser_port's pointer. Thus avoiding divisions and
complex computations.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-51-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-18 13:10:02 +02:00
..
2021-05-31 09:44:28 +02:00
2021-06-18 13:09:58 +02:00
2020-06-27 16:21:20 +02:00
2021-06-18 13:10:02 +02:00
2021-05-13 16:57:17 +02:00
2021-04-15 10:32:17 +02:00
2021-06-04 15:23:00 +02:00