summaryrefslogtreecommitdiff
path: root/zephyr/include
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/include
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/include')
-rw-r--r--zephyr/include/emul/emul_common_i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/include/emul/emul_common_i2c.h b/zephyr/include/emul/emul_common_i2c.h
index 3f48e2b33a..0457842a71 100644
--- a/zephyr/include/emul/emul_common_i2c.h
+++ b/zephyr/include/emul/emul_common_i2c.h
@@ -214,6 +214,8 @@ typedef int (*i2c_common_emul_write_func)(struct i2c_emul *emul, int reg,
struct i2c_common_emul_cfg {
/** Label of the I2C bus this emulator connects to */
const char *i2c_label;
+ /** Label of the I2C device being emulated */
+ const char *dev_label;
/** Pointer to run-time data */
struct i2c_common_emul_data *data;
/** Address of emulator on i2c bus */