diff options
author | Yuval Peress <peress@chromium.org> | 2021-09-10 12:16:07 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-10 23:13:51 +0000 |
commit | baaa981c243702db15559abcf725dd448cee4bdb (patch) | |
tree | 82e4c2a4d3acf0faa139805bea2393d9c70239c2 /zephyr/emul/emul_smart_battery.c | |
parent | 2c0c44bed1d4b866cd33abc6ed29ac6241b32476 (diff) | |
download | chrome-ec-baaa981c243702db15559abcf725dd448cee4bdb.tar.gz |
zephyr: emul: update EMUL_DEFINE call sites
Update the call sites of EMUL_DEFINE to include the data pointer.
BRANCH=none
BUG=none
TEST=zmake testall
Cq-Depend: chromium:3154404
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Icb1a788a2ffcbdd969c231edb2214447041ed5ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3153590
Tested-by: Yuval Peress <peress@google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Yuval Peress <peress@google.com>
Diffstat (limited to 'zephyr/emul/emul_smart_battery.c')
-rw-r--r-- | zephyr/emul/emul_smart_battery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zephyr/emul/emul_smart_battery.c b/zephyr/emul/emul_smart_battery.c index 1da517cd2a..4b1d87336e 100644 --- a/zephyr/emul/emul_smart_battery.c +++ b/zephyr/emul/emul_smart_battery.c @@ -873,7 +873,8 @@ static int sbat_emul_init(const struct emul *emul, .data = &sbat_emul_data_##n.common, \ .addr = DT_INST_REG_ADDR(n), \ }; \ - EMUL_DEFINE(sbat_emul_init, DT_DRV_INST(n), &sbat_emul_cfg_##n) + EMUL_DEFINE(sbat_emul_init, DT_DRV_INST(n), &sbat_emul_cfg_##n, \ + &sbat_emul_data_##n) DT_INST_FOREACH_STATUS_OKAY(SMART_BATTERY_EMUL) |