]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: uartlite: Use constants in early_uartlite_putc
authorSean Anderson <sean.anderson@seco.com>
Thu, 26 Aug 2021 19:43:23 +0000 (15:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Aug 2021 14:34:04 +0000 (16:34 +0200)
commit7a8de86a329cbc315cb40835dad70010da95f446
tree443500d44280b51c3e2a596377a6aec21607e08c
parentfcb2bf080de4f26d0cc7eb2cdcf37c6545aa0ed4
tty: serial: uartlite: Use constants in early_uartlite_putc

Use the constants defined at the beginning of this file instead of
integer literals when accessing registers. This makes this code easier
to read, and obviates the need for some explanatory comments.

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