summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2021-10-29 10:22:16 -0600
committerCommit Bot <commit-bot@chromium.org>2021-10-29 17:54:03 +0000
commit72233c202817925b654ddbc33a8a9f7b94db5628 (patch)
tree31d8c31fe9638f61f7236c2bf28cad021d2c13fb
parentcb2a32f3dcce97452162c5e41c44bea361ab208a (diff)
downloadchrome-ec-72233c202817925b654ddbc33a8a9f7b94db5628.tar.gz
zephyr: test: Fix missing braces in ln9310 driver test
Missing braces causes gitlab and now soon zmake to fail. Properly initialize the .time_to_mock field in the test_ln9310_cfly_precharge_timesout with curly braces. BRANCH=none BUG=b:184856083 TEST=zmake configure --test zephyr/test/drivers with new clang flags Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: Icc773f71901d5f99779382f62aae324782f4dfac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3253430 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--zephyr/test/drivers/src/ln9310.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/zephyr/test/drivers/src/ln9310.c b/zephyr/test/drivers/src/ln9310.c
index c5700fb836..a4a3ab3a98 100644
--- a/zephyr/test/drivers/src/ln9310.c
+++ b/zephyr/test/drivers/src/ln9310.c
@@ -389,7 +389,13 @@ static void test_ln9310_cfly_precharge_timesout(void)
emul_get_binding(DT_LABEL(DT_NODELABEL(ln9310)));
struct i2c_emul *i2c_emul = ln9310_emul_get_i2c_emul(emulator);
struct precharge_timeout_data test_data = {
- .time_to_mock = -1,
+ .time_to_mock = {
+ .val = -1,
+ .le = {
+ .lo = -1,
+ .hi = -1,
+ },
+ },
.handled_clearing_standby_en_bit_timeout = false,
};