sc16is7xx: use LSR_TEMT_BIT in .tx_empty()
authorJakub Kicinski <kubakici@wp.pl>
Fri, 29 May 2015 19:20:28 +0000 (21:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 21:47:27 +0000 (06:47 +0900)
commit4ae82e5d23961515796d76850499db3866c5e73b
tree5f76e406512b415579cf83baad55828c553b7515
parent4117a60c8e4c8d5f9fc05578e359d09d0fdf9d07
sc16is7xx: use LSR_TEMT_BIT in .tx_empty()

LSR_TEMT_BIT (LSR bit 6) provides us exactly the information
we need to determine if transmission is finished - FIFO level
and shift register empty.  We can save ourselves reading FIFO
level explicitly if we use this bit.

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c