mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
serial: 8250: Use defined IER bits
Instead of literal 0x0f, add a define for enabling all IER bits the 8250 driver is interested in. Don't make the define for combined flags part of UAPI. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20221125130509.8482-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
98a59cd26e
commit
ef460db2a7
@@ -12,6 +12,11 @@
|
||||
#include <uapi/linux/serial.h>
|
||||
#include <uapi/linux/serial_reg.h>
|
||||
|
||||
#define UART_IER_ALL_INTR (UART_IER_MSI | \
|
||||
UART_IER_RLSI | \
|
||||
UART_IER_THRI | \
|
||||
UART_IER_RDI)
|
||||
|
||||
/* Helper for dealing with UART_LCR_WLEN* defines */
|
||||
#define UART_LCR_WLEN(x) ((x) - 5)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user