Skip to content

Commit

Permalink
emul: emul_sbs_gauge: Fix compile
Browse files Browse the repository at this point in the history
EMUL_DEFINE was removed and replaced.  Update code to use new
EMUL_DT_INST_DEFINE.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Aug 17, 2022
1 parent 4b5e57a commit e950c21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/emul/i2c/emul_sbs_gauge.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int emul_sbs_sbs_gauge_init(const struct emul *target, const struct devic
static const struct sbs_gauge_emul_cfg sbs_gauge_emul_cfg_##n = { \
.addr = DT_INST_REG_ADDR(n), \
}; \
EMUL_DEFINE(emul_sbs_sbs_gauge_init, DT_DRV_INST(n), &sbs_gauge_emul_cfg_##n, \
&sbs_gauge_emul_data_##n, &sbs_gauge_emul_api_i2c)
EMUL_DT_INST_DEFINE(n, emul_sbs_sbs_gauge_init, &sbs_gauge_emul_data_##n, \
&sbs_gauge_emul_cfg_##n, &sbs_gauge_emul_api_i2c)

DT_INST_FOREACH_STATUS_OKAY(SBS_GAUGE_EMUL)

0 comments on commit e950c21

Please sign in to comment.