]> git.baikalelectronics.ru Git - kernel.git/commit
serial: Consolidate BOTH_EMPTY use
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 24 Jun 2022 20:54:24 +0000 (23:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:41:31 +0000 (14:41 +0200)
commitbcf7eed5d4e729dff1bf2e25987a98e803f876a6
tree1e58b35ab75d393d556f2ee9f1a0e01e763eab83
parent40c50394f3e195baefaf9bdfe2fcb69f7e3604b2
serial: Consolidate BOTH_EMPTY use

Per file BOTH_EMPTY defines are littering our source code here and
there. Define once in serial.h and create helper for the check
too.

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220624205424.12686-7-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/ath79/early_printk.c
drivers/accessibility/speakup/serialio.h
drivers/tty/serial/8250/8250_early.c
drivers/tty/serial/8250/8250_port.c
drivers/tty/serial/omap-serial.c
drivers/tty/serial/pch_uart.c
drivers/tty/serial/pxa.c
drivers/tty/serial/sunsu.c
drivers/tty/serial/vr41xx_siu.c
include/linux/serial.h