tty: serial: uartlite: Use read_poll_timeout for a polling loop
authorSean Anderson <sean.anderson@seco.com>
Thu, 26 Aug 2021 19:25:49 +0000 (15:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Aug 2021 14:34:32 +0000 (16:34 +0200)
commit2e5f3a69b6fcd52a64ce3d746c6ee8390b6cabe8
tree2dddc9376dfb22fd7e924224d172bd431219c6f0
parent3620a89b7d27138c716e5cf537a0bf6606a3a1b3
tty: serial: uartlite: Use read_poll_timeout for a polling loop

read_poll_timeout was recently introduced, and can be used to simplify
our console polling loop. This results in a slight reduction in code.
early_uartlite_putc can't get the same treatment, because it can be
called before udelay is set up.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/20210826192549.3203071-1-sean.anderson@seco.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/uartlite.c