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 677050d commit ad08551Copy full SHA for ad08551
drivers/sensor/tmp112/tmp112.c
@@ -202,7 +202,7 @@ int tmp112_init(const struct device *dev)
202
static struct tmp112_data tmp112_data_##inst; \
203
static const struct tmp112_config tmp112_config_##inst = { \
204
.bus = I2C_DT_SPEC_INST_GET(inst), \
205
- .cr = DT_ENUM_IDX(DT_DRV_INST(inst), conversion_rate), \
+ .cr = DT_INST_ENUM_IDX(inst, conversion_rate), \
206
.extended_mode = DT_INST_PROP(inst, extended_mode), \
207
}; \
208
\
0 commit comments