serial: 8250: Refactor LCR computation
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 22 Jan 2015 17:24:27 +0000 (12:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:27 +0000 (10:11 -0800)
commit0ec3f585cfb503a18b82cd181c9bf32b45a24f5e
tree24a0cdc1ef40d780d521c3e77416d886426be84a
parentd1f2f219319813070c022e841f48bfd0fe17fd34
serial: 8250: Refactor LCR computation

Refactor the computation of the LCR register value from termios c_cflag
into a new local function, serial8250_compute_lcr().

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c