summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBoris Mittelberg <bmbm@google.com>2021-03-29 23:35:03 +0000
committerCommit Bot <commit-bot@chromium.org>2021-04-27 01:45:46 +0000
commit7307d9e294a9309f152fe5e4adf12854116c0727 (patch)
tree6c34ceecab764ebeb08e789c926cdc95a5585cd0 /test
parent1221d6fbe3d38141604c44f120c307d5b1f12bda (diff)
downloadchrome-ec-7307d9e294a9309f152fe5e4adf12854116c0727.tar.gz
mkbp: Separate FIFO from the keyboard driver
Move protocol-related functionality out from the keyboard driver. This change is required to allow passing button events via MKBP on devices with non-MKBP keyboards. It reorganizes the code without changing the logic. BUG=b:170966461 BRANCH=main,firmware-dedede-13606.B,firmware-volteer-13672.B-main TEST=None Signed-off-by: Boris Mittelberg <bmbm@google.com> Change-Id: Ifb5b9d8e605f491313ee1dfe2c9950eb52152aa8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2669355
Diffstat (limited to 'test')
-rw-r--r--test/kb_mkbp.c2
-rw-r--r--test/kb_scan.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/kb_mkbp.c b/test/kb_mkbp.c
index 6ab010807d..3b191a47ac 100644
--- a/test/kb_mkbp.c
+++ b/test/kb_mkbp.c
@@ -65,7 +65,7 @@ int press_key(int c, int r, int pressed)
{
ccprintf("Input %s (%d, %d)\n", action[pressed], c, r);
set_state(c, r, pressed);
- return keyboard_fifo_add(state);
+ return mkbp_keyboard_add(state);
}
int verify_key(int c, int r, int pressed)
diff --git a/test/kb_scan.c b/test/kb_scan.c
index e0ba11137d..a4fb6f9841 100644
--- a/test/kb_scan.c
+++ b/test/kb_scan.c
@@ -77,7 +77,7 @@ int keyboard_raw_read_rows(void)
}
}
-int keyboard_fifo_add(const uint8_t *buffp)
+int mkbp_keyboard_add(const uint8_t *buffp)
{
fifo_add_count++;
return EC_SUCCESS;