Skip to content

Commit e950c21

Browse files
committed
emul: emul_sbs_gauge: Fix compile
EMUL_DEFINE was removed and replaced. Update code to use new EMUL_DT_INST_DEFINE. Signed-off-by: Kumar Gala <galak@kernel.org>
1 parent 4b5e57a commit e950c21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/emul/i2c/emul_sbs_gauge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static int emul_sbs_sbs_gauge_init(const struct emul *target, const struct devic
151151
static const struct sbs_gauge_emul_cfg sbs_gauge_emul_cfg_##n = { \
152152
.addr = DT_INST_REG_ADDR(n), \
153153
}; \
154-
EMUL_DEFINE(emul_sbs_sbs_gauge_init, DT_DRV_INST(n), &sbs_gauge_emul_cfg_##n, \
155-
&sbs_gauge_emul_data_##n, &sbs_gauge_emul_api_i2c)
154+
EMUL_DT_INST_DEFINE(n, emul_sbs_sbs_gauge_init, &sbs_gauge_emul_data_##n, \
155+
&sbs_gauge_emul_cfg_##n, &sbs_gauge_emul_api_i2c)
156156

157157
DT_INST_FOREACH_STATUS_OKAY(SBS_GAUGE_EMUL)

0 commit comments

Comments
 (0)