diff options
author | Yuval Peress <peress@chromium.org> | 2021-08-04 11:19:55 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-20 14:32:44 +0000 |
commit | 8270698e589f14239b4942a42b27132af497410b (patch) | |
tree | ea10c53f412c229980ea24a6faf8572295b92f75 /test/kb_scan.c | |
parent | d63ba9739b77bece9e0be136dd256c89ce2fd688 (diff) | |
download | chrome-ec-8270698e589f14239b4942a42b27132af497410b.tar.gz |
system: fix system_get_scratchpad API
The current API for system_get_scratchpad mixes the status and the value
being read. Update the signature to allow both.
BRANCH=none
BUG=b:195481980
TEST=make testall && zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I3a5f5ad523d507c53a5d474806f58afafb82e70c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3074828
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/kb_scan.c')
-rw-r--r-- | test/kb_scan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/kb_scan.c b/test/kb_scan.c index b3b42813e4..a43808c0c1 100644 --- a/test/kb_scan.c +++ b/test/kb_scan.c @@ -557,7 +557,9 @@ static int test_check_boot_down(void) void test_init(void) { - uint32_t state = system_get_scratchpad(); + uint32_t state; + + system_get_scratchpad(&state); if (state & TEST_STATE_MASK(TEST_STATE_STEP_2)) { /* Power-F3-ESC */ |