summaryrefslogtreecommitdiff
path: root/zephyr/emul/tcpc/emul_ps8xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/emul/tcpc/emul_ps8xxx.c')
-rw-r--r--zephyr/emul/tcpc/emul_ps8xxx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zephyr/emul/tcpc/emul_ps8xxx.c b/zephyr/emul/tcpc/emul_ps8xxx.c
index 43e7c2fdd7..477070460f 100644
--- a/zephyr/emul/tcpc/emul_ps8xxx.c
+++ b/zephyr/emul/tcpc/emul_ps8xxx.c
@@ -583,19 +583,19 @@ static int ps8xxx_emul_init(const struct emul *emul,
\
static const struct ps8xxx_emul_cfg ps8xxx_emul_cfg_##n = { \
.p0_cfg = { \
- .i2c_label = DT_INST_BUS_LABEL(n), \
+ .i2c_label = DT_LABEL(DT_BUS(DT_DRV_INST(n))), \
.dev_label = DT_INST_LABEL(n), \
.data = &ps8xxx_emul_data_##n.p0_data, \
.addr = DT_INST_PROP(n, p0_i2c_addr), \
}, \
.p1_cfg = { \
- .i2c_label = DT_INST_BUS_LABEL(n), \
+ .i2c_label = DT_LABEL(DT_BUS(DT_DRV_INST(n))), \
.dev_label = DT_INST_LABEL(n), \
.data = &ps8xxx_emul_data_##n.p1_data, \
.addr = DT_INST_PROP(n, p1_i2c_addr), \
}, \
.gpio_cfg = { \
- .i2c_label = DT_INST_BUS_LABEL(n), \
+ .i2c_label = DT_LABEL(DT_BUS(DT_DRV_INST(n))), \
.dev_label = DT_INST_LABEL(n), \
.data = &ps8xxx_emul_data_##n.gpio_data, \
.addr = DT_INST_PROP(n, gpio_i2c_addr), \