drivers: sensor: iis2mdc: use GPIO_DT_SPEC_INST_GET
Replace GPIO_DT_SPEC_GET for GPIO_DT_SPEC_INST_GET. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
c065738d6c
commit
87a8119105
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ static int iis2mdc_init(const struct device *dev)
|
|||
|
||||
#ifdef CONFIG_IIS2MDC_TRIGGER
|
||||
#define IIS2MDC_CFG_IRQ(inst) \
|
||||
.gpio_drdy = GPIO_DT_SPEC_GET(DT_DRV_INST(inst), drdy_gpios),
|
||||
.gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, drdy_gpios),
|
||||
#else
|
||||
#define IIS2MDC_CFG_IRQ(inst)
|
||||
#endif /* CONFIG_IIS2MDC_TRIGGER */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue