From 7835600c1e71ef0689c2c789dd99d5e3da564148 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 10 May 2021 09:50:43 +0200 Subject: [PATCH] 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 --- drivers/sensor/examplesensor/examplesensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sensor/examplesensor/examplesensor.c b/drivers/sensor/examplesensor/examplesensor.c index b2087da..2443948 100644 --- a/drivers/sensor/examplesensor/examplesensor.c +++ b/drivers/sensor/examplesensor/examplesensor.c @@ -75,7 +75,7 @@ static int examplesensor_init(const struct device *dev) static struct examplesensor_data examplesensor_data_##i; \ \ static const struct examplesensor_config examplesensor_config_##i = { \ - .input = GPIO_DT_SPEC_GET(DT_DRV_INST(i), input_gpios), \ + .input = GPIO_DT_SPEC_INST_GET(i, input_gpios), \ }; \ \ DEVICE_DT_INST_DEFINE(i, examplesensor_init, NULL, \