summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-06-21 08:55:15 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-06-21 08:14:29 -0700
commitaef1ae66381a414a98dcba8efe55990bdd8d5324 (patch)
tree13f36c7a846c47faef1579a73ff32a77c4b18f9e
parent300d9537615249c541d7cba287da919c6c774547 (diff)
downloadchrome-ec-aef1ae66381a414a98dcba8efe55990bdd8d5324.tar.gz
test/flash: Switch to EC_CMD_FLASH_INFO version 1 command
test_flash_info: the response to EC_CMD_FLASH_INFO is now, by default, a ec_response_flash_info_1 structure, not just ec_response_flash_info (version 0). BRANCH=none BUG=chromium:854924 TEST=make TEST_ASAN=y run-flash -j Change-Id: Iebe8d90c3bdee70c481e31d41f173bf1b9a094ad Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1109657 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--test/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/flash.c b/test/flash.c
index 3ee3384619..8c3e2698c7 100644
--- a/test/flash.c
+++ b/test/flash.c
@@ -348,9 +348,9 @@ static int test_op_failure(void)
static int test_flash_info(void)
{
- struct ec_response_flash_info resp;
+ struct ec_response_flash_info_1 resp;
- TEST_ASSERT(test_send_host_command(EC_CMD_FLASH_INFO, 0, NULL, 0,
+ TEST_ASSERT(test_send_host_command(EC_CMD_FLASH_INFO, 1, NULL, 0,
&resp, sizeof(resp)) == EC_RES_SUCCESS);
TEST_CHECK((resp.flash_size == CONFIG_FLASH_SIZE) &&