]> git.baikalelectronics.ru Git - kernel.git/commit
Input: da9063 - fix capability and drop KEY_SLEEP
authorMarco Felsch <m.felsch@pengutronix.de>
Mon, 16 Sep 2019 19:45:48 +0000 (12:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 Oct 2019 21:04:41 +0000 (14:04 -0700)
commit39aa80e37605b340d0fd7541984641585737cf1d
tree5ba634f5a484d1c105eb8d56982f3dbc119e883a
parent844ae66fc2d80edd121da661b53749fee485e985
Input: da9063 - fix capability and drop KEY_SLEEP

Since commit 8c99ab5ff871 ("Input: da9063 - report KEY_POWER instead of
KEY_SLEEP during power key-press") KEY_SLEEP isn't supported anymore. This
caused input device to not generate any events if "dlg,disable-key-power"
is set.

Fix this by unconditionally setting KEY_POWER capability, and not
declaring KEY_SLEEP.

Fixes: 8c99ab5ff871 ("Input: da9063 - report KEY_POWER instead of KEY_SLEEP during power key-press")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/da9063_onkey.c