summaryrefslogtreecommitdiff
path: root/zephyr/emul/emul_ln9310.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_ln9310.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_ln9310.c')
-rw-r--r--zephyr/emul/emul_ln9310.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/emul/emul_ln9310.c b/zephyr/emul/emul_ln9310.c
index ae213ddebf..d66f23a1a5 100644
--- a/zephyr/emul/emul_ln9310.c
+++ b/zephyr/emul/emul_ln9310.c
@@ -506,7 +506,7 @@ static int emul_ln9310_init(const struct emul *emul,
.gpio_int_pin = LN9310_GET_GPIO_INT_PIN(n), \
}; \
static const struct i2c_common_emul_cfg ln9310_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), \
.addr = DT_INST_REG_ADDR(n), \
}; \