]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cros_ec_keyb - add back missing mask for event_type
authorFei Shao <fshao@chromium.org>
Wed, 14 Aug 2019 22:06:00 +0000 (15:06 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 Aug 2019 18:30:44 +0000 (11:30 -0700)
commit297e1d00cf14194e74f42f436c81c71dee110c95
treecab1cd4c9f417bb9c44ecdedc5a03bb4e5bac397
parent1b0a61088f9a0e0e44e5a2df84b773f8ef7526e1
Input: cros_ec_keyb - add back missing mask for event_type

In the previous patch we didn't mask out event_type in case statement,
so switches are always picked instead of buttons, which results in
ChromeOS devices misbehaving when power button is pressed.
This patch adds back the missing mask.

Fixes: 0d11e4b190b7 ("Input: cros_ec_keyb: mask out extra flags in event_type")
Signed-off-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cros_ec_keyb.c