Skip to content

Commit b9d573f

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_nct38xx_alert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ BUILD_ASSERT(CONFIG_GPIO_NCT38XX_ALERT_INIT_PRIORITY > CONFIG_GPIO_NCT38XX_INIT_
140140
.nct38xx_num = DT_INST_PROP_LEN(inst, nct38xx_dev), \
141141
}; \
142142
static struct nct38xx_alert_data nct38xx_alert_data_##inst = { \
143-
.alert_dev = DEVICE_DT_GET(DT_DRV_INST(inst)), \
143+
.alert_dev = DEVICE_DT_INST_GET(inst), \
144144
}; \
145145
DEVICE_DT_INST_DEFINE(inst, nct38xx_alert_init, NULL, &nct38xx_alert_data_##inst, \
146146
&nct38xx_alert_cfg_##inst, POST_KERNEL, \

0 commit comments

Comments
 (0)