mxser: dedup mxser_must_set_enhance_mode
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:46 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:01 +0000 (13:10 +0200)
commitedb7d27cd10382b6fdb3af50873a04f108c4ee64
tree8b409e677f05585a763a2174c952107c7cf102cf
parent238d117d17516f92f5db958809ddec30731e9342
mxser: dedup mxser_must_set_enhance_mode

There are multiple copies of setting the EFR register. Separate it to a
new universal function called __mxser_must_set_EFR. And use it in the
code by introducing mxser_must_set_enhance_mode instead of
mxser_disable_must_enchance_mode and mxser_enable_must_enchance_mode.

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