tty/serial/8250: make UART_MCR register access consistent
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 31 May 2016 08:59:15 +0000 (10:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 21:30:42 +0000 (14:30 -0700)
commit36fd95b17e9c1c41836632d95f2be5cff93b3df8
tree198fd2b26bf044567d47677b7d35a3da907f30cd
parent692aa1905679bd72f84115986235d214f6096a98
tty/serial/8250: make UART_MCR register access consistent

Introduce serial8250_out_MCR() and serial8250_in_MCR() routines, that
replace following calls:

serial_out(port, UART_MCR, val)
serial_port_out(up, UART_MCR, val)
serial_in(port, UART_MCR)

This patch is needed in order to integrate reading/writing of MCR
signals via SERIAL_MCTRL_GPIO infrastructure later.

Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250.h
drivers/tty/serial/8250/8250_omap.c
drivers/tty/serial/8250/8250_port.c