diff options
author | Boris Mittelberg <bmbm@google.com> | 2021-03-29 23:35:03 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-27 01:45:46 +0000 |
commit | 7307d9e294a9309f152fe5e4adf12854116c0727 (patch) | |
tree | 6c34ceecab764ebeb08e789c926cdc95a5585cd0 /common/mkbp_event.c | |
parent | 1221d6fbe3d38141604c44f120c307d5b1f12bda (diff) | |
download | chrome-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 'common/mkbp_event.c')
-rw-r--r-- | common/mkbp_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c index ac922613d8..d67951c3b3 100644 --- a/common/mkbp_event.c +++ b/common/mkbp_event.c @@ -197,7 +197,7 @@ static inline int host_is_sleeping(void) /* * This is the deferred function that ensures that we attempt to set the MKBP * interrupt again if there was a failure in the system (EC or AP) and the AP - * never called get_next_event. + * never called mkbp_fifo_get_next_event. */ static void force_mkbp_if_events(void); DECLARE_DEFERRED(force_mkbp_if_events); @@ -272,7 +272,7 @@ static void activate_mkbp_with_events(uint32_t events_to_add) /* * This is the deferred function that ensures that we attempt to set the MKBP * interrupt again if there was a failure in the system (EC or AP) and the AP - * never called get_next_event. + * never called mkbp_fifo_get_next_event. */ static void force_mkbp_if_events(void) { |