drivers: sensor: bmp388: 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
6a6ebcec11
commit
ba5511ea1f
1 changed files with 1 additions and 1 deletions
|
@ -738,7 +738,7 @@ static int bmp388_init(const struct device *dev)
|
|||
|
||||
#if defined(CONFIG_BMP388_TRIGGER)
|
||||
#define BMP388_INT_CFG(inst) \
|
||||
.gpio_int = GPIO_DT_SPEC_GET(DT_DRV_INST(inst), int_gpios),
|
||||
.gpio_int = GPIO_DT_SPEC_INST_GET(inst, int_gpios),
|
||||
#else
|
||||
#define BMP388_INT_CFG(inst)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue