summaryrefslogtreecommitdiff
path: root/zephyr/emul/emul_isl923x.c
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2022-08-02 13:10:20 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-03 20:07:24 +0000
commit9d346066594745ad1ce465890f60b5db0e6615a1 (patch)
tree1c0c28d83c89dd9267d47f7d3a8b2532b5234c99 /zephyr/emul/emul_isl923x.c
parente372db6463482ff5a9da7957c9b411a35cd3b33f (diff)
downloadchrome-ec-9d346066594745ad1ce465890f60b5db0e6615a1.tar.gz
zephyr: emul: Use EMUL_DT_INST_DEFINE
Update the emulators to use EMUL_DT_INST_DEFINE and EMUL_DT_GET instead of EMUL_DEFINE and EMUL_REG_NAME, because the latter have been removed upstream. BUG=b:224588313 TEST=zmake testall BRANCH=none Cq-Depend: chromium:3806745 Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: If358bd2bcfe9b99df0a671e2542a94deb5fad8f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805535 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'zephyr/emul/emul_isl923x.c')
-rw-r--r--zephyr/emul/emul_isl923x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/emul/emul_isl923x.c b/zephyr/emul/emul_isl923x.c
index 9853d57ab1..2a0a903dc1 100644
--- a/zephyr/emul/emul_isl923x.c
+++ b/zephyr/emul/emul_isl923x.c
@@ -443,8 +443,8 @@ static int emul_isl923x_init(const struct emul *emul,
.addr = DT_INST_REG_ADDR(n), \
}, \
}; \
- EMUL_DEFINE(emul_isl923x_init, DT_DRV_INST(n), &isl923x_emul_cfg_##n, \
- &isl923x_emul_data_##n, &i2c_common_emul_api)
+ EMUL_DT_INST_DEFINE(n, emul_isl923x_init, &isl923x_emul_data_##n, \
+ &isl923x_emul_cfg_##n, &i2c_common_emul_api)
DT_INST_FOREACH_STATUS_OKAY(INIT_ISL923X)