Skip to content

Commit 7835600

Browse files
gmarullnashif
authored andcommitted
drivers: sensor: examplesensor: use GPIO_DT_SPEC_INST_GET
Instance version of the GPIO_DT_SPEC_GET was recently introduced. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 8ef9554 commit 7835600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/examplesensor/examplesensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static int examplesensor_init(const struct device *dev)
7575
static struct examplesensor_data examplesensor_data_##i; \
7676
\
7777
static const struct examplesensor_config examplesensor_config_##i = { \
78-
.input = GPIO_DT_SPEC_GET(DT_DRV_INST(i), input_gpios), \
78+
.input = GPIO_DT_SPEC_INST_GET(i, input_gpios), \
7979
}; \
8080
\
8181
DEVICE_DT_INST_DEFINE(i, examplesensor_init, NULL, \

0 commit comments

Comments
 (0)