Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: Use bits for UART_LSR_BRK_ERROR_BITS/MSR_ANY_DELTA

Instead of listing the bits for UART_LSR_BRK_ERROR_BITS and
UART_MSR_ANY_DELTA in comment, use them to define instead.

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-4-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ilpo Järvinen and committed by
Greg Kroah-Hartman
e23ee9d2 fddbab7b

+2 -2
+2 -2
include/uapi/linux/serial_reg.h
··· 139 139 #define UART_LSR_PE 0x04 /* Parity error indicator */ 140 140 #define UART_LSR_OE 0x02 /* Overrun error indicator */ 141 141 #define UART_LSR_DR 0x01 /* Receiver data ready */ 142 - #define UART_LSR_BRK_ERROR_BITS 0x1E /* BI, FE, PE, OE bits */ 142 + #define UART_LSR_BRK_ERROR_BITS (UART_LSR_BI|UART_LSR_FE|UART_LSR_PE|UART_LSR_OE) 143 143 144 144 #define UART_MSR 6 /* In: Modem Status Register */ 145 145 #define UART_MSR_DCD 0x80 /* Data Carrier Detect */ ··· 150 150 #define UART_MSR_TERI 0x04 /* Trailing edge ring indicator */ 151 151 #define UART_MSR_DDSR 0x02 /* Delta DSR */ 152 152 #define UART_MSR_DCTS 0x01 /* Delta CTS */ 153 - #define UART_MSR_ANY_DELTA 0x0F /* Any of the delta bits! */ 153 + #define UART_MSR_ANY_DELTA (UART_MSR_DDCD|UART_MSR_TERI|UART_MSR_DDSR|UART_MSR_DCTS) 154 154 155 155 #define UART_SCR 7 /* I/O: Scratch Register */ 156 156