drivers: sensor: iis2iclx: 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
87a8119105
commit
b735f5eb15
1 changed files with 1 additions and 1 deletions
|
@ -644,7 +644,7 @@ static int iis2iclx_init(const struct device *dev)
|
|||
|
||||
#ifdef CONFIG_IIS2ICLX_TRIGGER
|
||||
#define IIS2ICLX_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), \
|
||||
.int_pin = DT_INST_PROP(inst, int_pin)
|
||||
#else
|
||||
#define IIS2ICLX_CFG_IRQ(inst)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue