diff options
author | Yuval Peress <peress@google.com> | 2021-09-30 11:08:58 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-02 02:28:00 +0000 |
commit | a7ef9770338570a2ce71af97b80687844b109691 (patch) | |
tree | c9f0ee4324edbfd18404dc43da7c07d192d0e700 /zephyr/include/emul | |
parent | b3c535fcd0c7d0df3c2aa6a1fb827b106534146c (diff) | |
download | chrome-ec-a7ef9770338570a2ce71af97b80687844b109691.tar.gz |
zephyr: test: verify isl923x device ID code path
BRANCH=none
BUG=b:201602829
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: I08b24d571e0b27fd7fc5f644efdba18c5a639128
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3198237
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/include/emul')
-rw-r--r-- | zephyr/include/emul/emul_isl923x.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/include/emul/emul_isl923x.h b/zephyr/include/emul/emul_isl923x.h index c3706be03c..3de7475207 100644 --- a/zephyr/include/emul/emul_isl923x.h +++ b/zephyr/include/emul/emul_isl923x.h @@ -28,4 +28,13 @@ struct i2c_emul *isl923x_emul_get_i2c_emul(const struct emul *emulator); void isl923x_emul_set_manufacturer_id(const struct emul *emulator, uint16_t manufacturer_id); +/** + * @brief Set the device ID + * + * @param emulator The emulator to modify + * @param device_id The new device ID + */ +void isl923x_emul_set_device_id(const struct emul *emulator, + uint16_t device_id); + #endif /* ZEPHYR_INCLUDE_EMUL_EMUL_ISL923X_H_ */ |