diff options
author | Yuval Peress <peress@chromium.org> | 2021-09-07 00:32:08 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-07 20:02:55 +0000 |
commit | 1fba781b9f6d17dbab70227c4b90c268d6fe7af7 (patch) | |
tree | c52a6a017e6a48cf75da99dfb5c52140017016e0 /zephyr/emul/emul_tcs3400.c | |
parent | 968b86d63a578e72c2c9de8e6f5d2acb27cce9fa (diff) | |
download | chrome-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_tcs3400.c')
-rw-r--r-- | zephyr/emul/emul_tcs3400.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/emul/emul_tcs3400.c b/zephyr/emul/emul_tcs3400.c index dd65b31211..6c2aa48816 100644 --- a/zephyr/emul/emul_tcs3400.c +++ b/zephyr/emul/emul_tcs3400.c @@ -626,6 +626,7 @@ static int tcs_emul_init(const struct emul *emul, \ static const struct i2c_common_emul_cfg tcs_emul_cfg_##n = { \ .i2c_label = DT_INST_BUS_LABEL(n), \ + .dev_label = DT_INST_LABEL(n), \ .data = &tcs_emul_data_##n.common, \ .addr = DT_INST_REG_ADDR(n), \ }; \ |