summaryrefslogtreecommitdiff
path: root/zephyr/emul/emul_smart_battery.c
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-09-07 00:32:08 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-07 20:02:55 +0000
commit1fba781b9f6d17dbab70227c4b90c268d6fe7af7 (patch)
treec52a6a017e6a48cf75da99dfb5c52140017016e0 /zephyr/emul/emul_smart_battery.c
parent968b86d63a578e72c2c9de8e6f5d2acb27cce9fa (diff)
downloadchrome-ec-1fba781b9f6d17dbab70227c4b90c268d6fe7af7.tar.gz
zephyr: emul: i2c: Add device label for better debug
Improve the debug output by including the device label in the common configs. BRANCH=none BUG=none TEST=zmake configure --test zephyr/test/drivers Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Ic331e7842efdfae70d3f994a694c7723fdcd9640 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3144313 Reviewed-by: Tomasz Michalec <tm@semihalf.com> Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/emul/emul_smart_battery.c')
-rw-r--r--zephyr/emul/emul_smart_battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/emul/emul_smart_battery.c b/zephyr/emul/emul_smart_battery.c
index 1fbc5b4993..1da517cd2a 100644
--- a/zephyr/emul/emul_smart_battery.c
+++ b/zephyr/emul/emul_smart_battery.c
@@ -869,6 +869,7 @@ static int sbat_emul_init(const struct emul *emul,
\
static const struct i2c_common_emul_cfg sbat_emul_cfg_##n = { \
.i2c_label = DT_INST_BUS_LABEL(n), \
+ .dev_label = DT_INST_LABEL(n), \
.data = &sbat_emul_data_##n.common, \
.addr = DT_INST_REG_ADDR(n), \
}; \