Input: cros_ec_keyb - send 'scancodes' in addition to key events
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 10 Dec 2020 01:59:53 +0000 (17:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:47:04 +0000 (13:47 +0100)
commitbabcb8ec880d72e33011c6d2331830233ca2e421
tree6e717da524ce776a23640ad8cfaac4d96149a1aa
parente7f7033799a2e7e3fc020b2fe13d5a29bf1f432d
Input: cros_ec_keyb - send 'scancodes' in addition to key events

[ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ]

To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE
and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in
addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN
capability, so it is only matter of actually sending the events.

Link: https://lore.kernel.org/r/X87aOaSptPTvZ3nZ@google.com
Acked-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/keyboard/cros_ec_keyb.c