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>
This commit is contained in:
Russell King
2015-11-16 17:40:41 +00:00
committed by Greg Kroah-Hartman
parent bf69ff8a24
commit e4df9a8053
2 changed files with 16 additions and 29 deletions

View File

@@ -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,