Skip to content

Commit 64ac64d

Browse files
youssefz24kartben
authored andcommitted
drivers: interrupt_controller: change dt macro
Replace the use of `DT_NODELABEL(exti)` which depends on the node label with the defined EXTI_NODE macro using the instance with the `st_stm32_exti` compatible. Since both macros point to the same node, this change doesn't affect the code logic, but makes it independent of the node label, in preparation for the addition of the STM32MP2 exti nodes. Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
1 parent fb4f0f8 commit 64ac64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/interrupt_controller/intc_exti_stm32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct stm32_exti_range {
3535
uint8_t len;
3636
};
3737

38-
#define NUM_EXTI_LINES DT_PROP(DT_NODELABEL(exti), num_lines)
38+
#define NUM_EXTI_LINES DT_PROP(EXTI_NODE, num_lines)
3939

4040
static IRQn_Type exti_irq_table[NUM_EXTI_LINES] = {[0 ... NUM_EXTI_LINES - 1] = 0xFF};
4141

@@ -220,7 +220,7 @@ static int stm32_exti_init(const struct device *dev)
220220
{
221221
ARG_UNUSED(dev);
222222

223-
DT_FOREACH_PROP_ELEM(DT_NODELABEL(exti),
223+
DT_FOREACH_PROP_ELEM(EXTI_NODE,
224224
interrupt_names,
225225
STM32_EXTI_INIT_LINE_RANGE);
226226

0 commit comments

Comments
 (0)