serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()
authorNoam Camus <noamc@ezchip.com>
Sat, 12 Dec 2015 17:18:25 +0000 (19:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:28:23 +0000 (22:28 -0800)
commitcdcea058e51008479545f29201b4fa577c59733c
tree3cee2e5144875a29e046696a676cbabe6ba10981
parent344cee2470ff70801c95c62ab2762da0834c8c6c
serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()

With the help of Heikki we take common code that
makes sure LCR write wasn't ignored and put it in new function called
dw8250_check_lcr(). This function serves 3 serial_out routines:
dw8250_serial_out(), dw8250_serial_out32(), and dw8250_serial_outq().

This patch only brings better code reuse.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c