diff options
author | Caveh Jalali <caveh@chromium.org> | 2023-01-12 23:15:07 -0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-18 07:18:30 +0000 |
commit | 6912ee393bc5a20c91b6da6c801ebc34d2b95062 (patch) | |
tree | 1b658833ce78488f34201acc800a288e9a400ebf | |
parent | 6ad090f115c2efed55408660a024cc86cbe4c0dc (diff) | |
download | chrome-ec-6912ee393bc5a20c91b6da6c801ebc34d2b95062.tar.gz |
zephyr/test: test_shim_rtc: Fix EC_CMD_RTC_GET_* response
The EC_CMD_RTC_GET_* host commands return a 'struct ec_response_rtc' not
'struct ec_params_rtc'. These structs are identical, so no functional
change is introduced.
BRANCH=none
BUG=b:258110734
TEST='./twister -v -T zephyr/test' passes
Change-Id: I077d3114a54cd3445dd39ebf49ae493a4927fbd3
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4171499
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r-- | zephyr/test/drivers/shim_rtc/src/test_shim_rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/test/drivers/shim_rtc/src/test_shim_rtc.c b/zephyr/test/drivers/shim_rtc/src/test_shim_rtc.c index 6f4f9a43e2..9c411bb433 100644 --- a/zephyr/test/drivers/shim_rtc/src/test_shim_rtc.c +++ b/zephyr/test/drivers/shim_rtc/src/test_shim_rtc.c @@ -17,7 +17,7 @@ ZTEST_USER(rtc_shim, test_hc_rtc_set_get_value) { struct ec_params_rtc set_value; - struct ec_params_rtc get_value; + struct ec_response_rtc get_value; struct host_cmd_handler_args set_args = BUILD_HOST_COMMAND_PARAMS(EC_CMD_RTC_SET_VALUE, 0, set_value); struct host_cmd_handler_args get_args = @@ -39,7 +39,7 @@ ZTEST_USER(rtc_shim, test_hc_rtc_set_get_value) ZTEST_USER(rtc_shim, test_hc_rtc_set_get_alarm) { struct ec_params_rtc set_value; - struct ec_params_rtc get_value; + struct ec_response_rtc get_value; struct host_cmd_handler_args set_args = BUILD_HOST_COMMAND_PARAMS(EC_CMD_RTC_SET_ALARM, 0, set_value); struct host_cmd_handler_args get_args = |