Skip to content

Commit 677050d

Browse files
gmarullcarlescufi
authored andcommitted
drivers: sensor: max17262: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent bda8878 commit 677050d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/max17262/max17262.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static const struct sensor_driver_api max17262_battery_driver_api = {
321321
static struct max17262_data max17262_data_##n; \
322322
\
323323
static const struct max17262_config max17262_config_##n = { \
324-
.i2c = DEVICE_DT_GET(DT_BUS(DT_DRV_INST(n))), \
324+
.i2c = DEVICE_DT_GET(DT_INST_BUS(n)), \
325325
.i2c_addr = DT_INST_REG_ADDR(n), \
326326
.design_voltage = DT_INST_PROP(n, design_voltage), \
327327
.desired_voltage = DT_INST_PROP(n, desired_voltage), \

0 commit comments

Comments
 (0)