Skip to content

Commit 4e7b4e6

Browse files
gmarullcarlescufi
authored andcommitted
drivers: gpio: mchp_xec_v2: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent eb9eae4 commit 4e7b4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio_mchp_xec_v2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,12 @@ static const struct gpio_driver_api gpio_xec_driver_api = {
380380
};
381381

382382
#define XEC_GPIO_PORT_FLAGS(n) \
383-
((DT_IRQ_HAS_CELL(DT_DRV_INST(n), irq)) ? GPIO_INT_ENABLE : 0)
383+
((DT_INST_IRQ_HAS_CELL(n, irq)) ? GPIO_INT_ENABLE : 0)
384384

385385
#define XEC_GPIO_PORT(n) \
386386
static int gpio_xec_port_init_##n(const struct device *dev) \
387387
{ \
388-
if (!(DT_IRQ_HAS_CELL(DT_DRV_INST(n), irq))) { \
388+
if (!(DT_INST_IRQ_HAS_CELL(n, irq))) { \
389389
return 0; \
390390
} \
391391
\

0 commit comments

Comments
 (0)