Skip to content

Commit ad08551

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/tmp112/tmp112.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ int tmp112_init(const struct device *dev)
202202
static struct tmp112_data tmp112_data_##inst; \
203203
static const struct tmp112_config tmp112_config_##inst = { \
204204
.bus = I2C_DT_SPEC_INST_GET(inst), \
205-
.cr = DT_ENUM_IDX(DT_DRV_INST(inst), conversion_rate), \
205+
.cr = DT_INST_ENUM_IDX(inst, conversion_rate), \
206206
.extended_mode = DT_INST_PROP(inst, extended_mode), \
207207
}; \
208208
\

0 commit comments

Comments
 (0)