Skip to content

Commit 0aaf935

Browse files
committed
Resolve inconsistent cell name for IRQ type in device trees
Related to #79356 Resolve inconsistent cell name for IRQ type in `drivers/serial/uart_ns16550.c`. * Replace all instances of "sense" with "type" in the macro `UART_NS16550_IRQ_FLAGS(n)` * Replace all instances of "flags" with "type" in the macro `UART_NS16550_IRQ_FLAGS(n)` * Ensure the macro `UART_NS16550_IRQ_FLAGS(n)` only checks for the "type" cell
1 parent e90c58a commit 0aaf935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/serial/uart_ns16550.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,8 +1805,8 @@ static const struct uart_driver_api uart_ns16550_driver_api = {
18051805
};
18061806

18071807
#define UART_NS16550_IRQ_FLAGS(n) \
1808-
COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, sense), \
1809-
(DT_INST_IRQ(n, sense)), \
1808+
COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, type), \
1809+
(DT_INST_IRQ(n, type)), \
18101810
(0))
18111811

18121812
/* IO-port or MMIO based UART */

0 commit comments

Comments
 (0)