From 4e7b4e65af3d97d206cf5d80bcc1c49a67e1a48e Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 16 Dec 2021 10:34:08 +0100 Subject: [PATCH] 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 --- drivers/gpio/gpio_mchp_xec_v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio_mchp_xec_v2.c b/drivers/gpio/gpio_mchp_xec_v2.c index cbe7ee5fbbe..dec401ed027 100644 --- a/drivers/gpio/gpio_mchp_xec_v2.c +++ b/drivers/gpio/gpio_mchp_xec_v2.c @@ -380,12 +380,12 @@ static const struct gpio_driver_api gpio_xec_driver_api = { }; #define XEC_GPIO_PORT_FLAGS(n) \ - ((DT_IRQ_HAS_CELL(DT_DRV_INST(n), irq)) ? GPIO_INT_ENABLE : 0) + ((DT_INST_IRQ_HAS_CELL(n, irq)) ? GPIO_INT_ENABLE : 0) #define XEC_GPIO_PORT(n) \ static int gpio_xec_port_init_##n(const struct device *dev) \ { \ - if (!(DT_IRQ_HAS_CELL(DT_DRV_INST(n), irq))) { \ + if (!(DT_INST_IRQ_HAS_CELL(n, irq))) { \ return 0; \ } \ \