diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-11-16 17:40:41 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-13 19:59:48 -0800 |
commit | e4df9a8053f24b6f37cf11aca793a8deeca88caf (patch) | |
tree | ea8477bd66bf938ea354ec2f83092e664ec3ee9a /drivers/tty/serial/amba-pl011.h | |
parent | bf69ff8a24358521f113b5c13f271681a74dd2a9 (diff) | |
download | lwn-e4df9a8053f24b6f37cf11aca793a8deeca88caf.tar.gz lwn-e4df9a8053f24b6f37cf11aca793a8deeca88caf.zip |
tty: amba-pl011: clean up LCR register offsets
As we can detect when the LCR register is split between TX and RX,
we don't need three entries in the table to deal with this. Reduce
this down to two entries by converting the REG_ST_LCRH_* entries to
standard REG_LCRH_* and remove REG_LCRH.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/amba-pl011.h')
-rw-r--r-- | drivers/tty/serial/amba-pl011.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/tty/serial/amba-pl011.h b/drivers/tty/serial/amba-pl011.h index 0c6756dba2fe..411c60e1f9a4 100644 --- a/drivers/tty/serial/amba-pl011.h +++ b/drivers/tty/serial/amba-pl011.h @@ -6,11 +6,10 @@ enum { REG_ST_DMAWM, REG_ST_TIMEOUT, REG_FR, - REG_ST_LCRH_RX, + REG_LCRH_RX, + REG_LCRH_TX, REG_IBRD, REG_FBRD, - REG_LCRH, - REG_ST_LCRH_TX, REG_CR, REG_IFLS, REG_IMSC, |