drivers: sensor: lsm6dso: 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
ba5511ea1f
commit
c065738d6c
1 changed files with 1 additions and 1 deletions
|
@ -810,7 +810,7 @@ static int lsm6dso_init(const struct device *dev)
|
||||||
|
|
||||||
#ifdef CONFIG_LSM6DSO_TRIGGER
|
#ifdef CONFIG_LSM6DSO_TRIGGER
|
||||||
#define LSM6DSO_CFG_IRQ(inst) \
|
#define LSM6DSO_CFG_IRQ(inst) \
|
||||||
.gpio_drdy = GPIO_DT_SPEC_GET(DT_DRV_INST(inst), irq_gpios), \
|
.gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, irq_gpios), \
|
||||||
.int_pin = DT_INST_PROP(inst, int_pin)
|
.int_pin = DT_INST_PROP(inst, int_pin)
|
||||||
#else
|
#else
|
||||||
#define LSM6DSO_CFG_IRQ(inst)
|
#define LSM6DSO_CFG_IRQ(inst)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue