]> 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)
commitbd983fbf631017c0ab6c2f3c6f53be2ec571e267
tree5ba634f5a484d1c105eb8d56982f3dbc119e883a
parent3cbb39a0a1faa435abb8ba0bbfb7a6c5919c74b3
Input: da9063 - fix capability and drop KEY_SLEEP

Since commit 43b56dc45277 ("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: 43b56dc45277 ("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