Input: cros_ec_keyb: mask out extra flags in event_type
authorTing Shen <phoenixshen@chromium.org>
Fri, 14 Jun 2019 06:54:38 +0000 (14:54 +0800)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 20 Jun 2019 09:51:01 +0000 (11:51 +0200)
commitd096aa3eb6045a6a475a0239f3471c59eedf3d61
treed2a57d2fe976f526dddb0938699dcc99c36680e4
parentaa8b8f9f9bef4696b6d9f1ca4d0de2b403db65c5
Input: cros_ec_keyb: mask out extra flags in event_type

http://crosreview.com/1341159 added a EC_MKBP_HAS_MORE_EVENTS flag to
the event_type field, the receiver side should mask out this extra bit when
processing the event.

Signed-off-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Enrico Granata <egranata@google.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/input/keyboard/cros_ec_keyb.c