summaryrefslogtreecommitdiff
path: root/zephyr/emul/emul_bmi.c
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2022-07-18 13:24:51 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-19 18:01:40 +0000
commit7ae9a8daffde9b5451dff964646323a6aa9a0f9a (patch)
treec28ec26e63c3a08a4c06bb60ba058bc4e10f0052 /zephyr/emul/emul_bmi.c
parent3f5963fd7c75715f168cc757329b4a4761729491 (diff)
downloadchrome-ec-7ae9a8daffde9b5451dff964646323a6aa9a0f9a.tar.gz
emul: Remove DT_INST_BUS_LABEL(n) usage
Zephyr upstream deprecated DT_BUS_LABEL(node_id) and DT_INST_BUS_LABEL(inst) macros causing a CQ build failure and blocking Zephyr downstreaming. Replace code occurrences of DT_INST_BUS_LABEL(inst) with DT_LABEL(DT_BUS(DT_DRV_INST(inst))). This macro was only used in emulators. BRANCH=none BUG=b:239447869 TEST=zmake test test-drivers # With breaking commit in downstreamed Zephyr Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: If745caeb1273c7e51331bd45b17dc28960c7f8da Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3767857 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-by: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'zephyr/emul/emul_bmi.c')
-rw-r--r--zephyr/emul/emul_bmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/emul/emul_bmi.c b/zephyr/emul/emul_bmi.c
index bdc440a36f..23f0bfddeb 100644
--- a/zephyr/emul/emul_bmi.c
+++ b/zephyr/emul/emul_bmi.c
@@ -1087,7 +1087,7 @@ static int bmi_emul_init(const struct emul *emul, const struct device *parent)
}; \
\
static const struct i2c_common_emul_cfg bmi_emul_cfg_##n = { \
- .i2c_label = DT_INST_BUS_LABEL(n), \
+ .i2c_label = DT_LABEL(DT_BUS(DT_DRV_INST(n))), \
.dev_label = DT_INST_LABEL(n), \
.data = &bmi_emul_data_##n.common, \
.addr = DT_INST_REG_ADDR(n), \