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)
commitafce285b859cea91c182015fc9858ea58c26cd0e
tree5ba634f5a484d1c105eb8d56982f3dbc119e883a
parent0898782247ae533d1f4e47a06bc5d4870931b284
Input: da9063 - fix capability and drop KEY_SLEEP

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