We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda8878 commit 677050dCopy full SHA for 677050d
drivers/sensor/max17262/max17262.c
@@ -321,7 +321,7 @@ static const struct sensor_driver_api max17262_battery_driver_api = {
321
static struct max17262_data max17262_data_##n; \
322
\
323
static const struct max17262_config max17262_config_##n = { \
324
- .i2c = DEVICE_DT_GET(DT_BUS(DT_DRV_INST(n))), \
+ .i2c = DEVICE_DT_GET(DT_INST_BUS(n)), \
325
.i2c_addr = DT_INST_REG_ADDR(n), \
326
.design_voltage = DT_INST_PROP(n, design_voltage), \
327
.desired_voltage = DT_INST_PROP(n, desired_voltage), \
0 commit comments