drivers: Apply dynamic IRQ API change
Switching to constant parameter. Fixes #27399 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
fd6fbe9c5f
commit
5c9dd0de78
3 changed files with 10 additions and 7 deletions
|
@ -682,8 +682,9 @@ static void dma_stm32_irq_##chan(void *arg) \
|
|||
do { \
|
||||
if (!irq_is_enabled(DT_INST_IRQ_BY_IDX(dma, chan, irq))) { \
|
||||
irq_connect_dynamic(DT_INST_IRQ_BY_IDX(dma, chan, irq), \
|
||||
DT_INST_IRQ_BY_IDX(dma, chan, priority), \
|
||||
dma_stm32_irq_handler, dev, 0); \
|
||||
DT_INST_IRQ_BY_IDX(dma, chan, priority), \
|
||||
(void (*)(const void *)) \
|
||||
dma_stm32_irq_handler, dev, 0); \
|
||||
irq_enable(DT_INST_IRQ_BY_IDX(dma, chan, irq)); \
|
||||
} \
|
||||
data->max_streams++; \
|
||||
|
|
|
@ -55,8 +55,8 @@ static void i2c_config_@NUM@(struct device *port)
|
|||
|
||||
irq_connect_dynamic(irq,
|
||||
DT_INST_IRQ(@NUM@, priority),
|
||||
i2c_dw_isr, DEVICE_GET(i2c_@NUM@),
|
||||
INST_@NUM@_IRQ_FLAGS);
|
||||
(void (*)(const void *))i2c_dw_isr,
|
||||
DEVICE_GET(i2c_@NUM@), INST_@NUM@_IRQ_FLAGS);
|
||||
pcie_irq_enable(DT_INST_REG_ADDR(@NUM@), irq);
|
||||
|
||||
#else
|
||||
|
|
|
@ -88,7 +88,7 @@ static void irq_config_func_@NUM@(struct device *dev)
|
|||
|
||||
irq_connect_dynamic(irq,
|
||||
DT_INST_IRQ(@NUM@, priority),
|
||||
uart_ns16550_isr,
|
||||
(void (*)(const void *))uart_ns16550_isr,
|
||||
DEVICE_GET(uart_ns16550_@NUM@),
|
||||
INST_@NUM@_IRQ_FLAGS);
|
||||
|
||||
|
@ -100,7 +100,8 @@ static void irq_config_func_@NUM@(struct device *dev)
|
|||
|
||||
IRQ_CONNECT(DT_INST_IRQN(@NUM@),
|
||||
DT_INST_IRQ(@NUM@, priority),
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_@NUM@),
|
||||
uart_ns16550_isr,
|
||||
DEVICE_GET(uart_ns16550_@NUM@),
|
||||
INST_@NUM@_IRQ_FLAGS);
|
||||
|
||||
pcie_irq_enable(DT_INST_REG_ADDR(@NUM@),
|
||||
|
@ -113,7 +114,8 @@ static void irq_config_func_@NUM@(struct device *dev)
|
|||
|
||||
IRQ_CONNECT(DT_INST_IRQN(@NUM@),
|
||||
DT_INST_IRQ(@NUM@, priority),
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_@NUM@),
|
||||
uart_ns16550_isr,
|
||||
DEVICE_GET(uart_ns16550_@NUM@),
|
||||
INST_@NUM@_IRQ_FLAGS);
|
||||
|
||||
irq_enable(DT_INST_IRQN(@NUM@));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue