Skip to content

Commit

Permalink
serial: xilinx: uartlite: update irq_enable to use DT_INST_IRQN_BY_IDX
Browse files Browse the repository at this point in the history
Update the irq_enable macro to use the DT_INST_IRQN_BY_IDX helper.

This ensures proper handling of IRQ numbers in systems with multi-level
interrupt configurations.

Signed-off-by: Ajay Neeli <[email protected]>
  • Loading branch information
Ajay Neeli authored and kartben committed Feb 3, 2025
1 parent 1237c86 commit b7d13ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/uart_xlnx_uartlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ static DEVICE_API(uart, xlnx_uartlite_driver_api) = {
xlnx_uartlite_isr, \
DEVICE_DT_INST_GET(n), 0); \
\
irq_enable(DT_INST_IRQ_BY_IDX(n, i, irq)); \
irq_enable(DT_INST_IRQN_BY_IDX(n, i)); \
} while (false)
#define XLNX_UARTLITE_CONFIG_FUNC(n) \
static void xlnx_uartlite_config_func_##n(const struct device *dev) \
Expand Down

0 comments on commit b7d13ea

Please sign in to comment.