mxser: introduce and use start/stop_tx helpers
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:15:05 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:02 +0000 (13:10 +0200)
commit740165f7acbf1e73e6a7bfa2e8642b2e86cdee94
tree57a72729a4d13ee4656ba0695ba8b51be1ffdde6
parentbe4866671f8302f04e0485573e97d3a5dfe93fca
mxser: introduce and use start/stop_tx helpers

Starting and stopping TX is performed on many places in the driver. It
is repeated outb and info->IER modification.  Create few helpers
(__mxser_start_tx, mxser_start_tx, __mxser_stop_tx) and use them in the
code instead of open coding.

This should be a base for an uart driver for this device in the future.

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