Skip to content

Commit afce285

Browse files
Marco Felschdtor
authored andcommitted
Input: da9063 - fix capability and drop KEY_SLEEP
Since commit f889bea ("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: f889bea ("Input: da9063 - report KEY_POWER instead of KEY_SLEEP during power key-press") Signed-off-by: Marco Felsch <[email protected]> Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 0898782 commit afce285

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/input/misc/da9063_onkey.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,7 @@ static int da9063_onkey_probe(struct platform_device *pdev)
232232
onkey->input->phys = onkey->phys;
233233
onkey->input->dev.parent = &pdev->dev;
234234

235-
if (onkey->key_power)
236-
input_set_capability(onkey->input, EV_KEY, KEY_POWER);
237-
238-
input_set_capability(onkey->input, EV_KEY, KEY_SLEEP);
235+
input_set_capability(onkey->input, EV_KEY, KEY_POWER);
239236

240237
INIT_DELAYED_WORK(&onkey->work, da9063_poll_on);
241238

0 commit comments

Comments
 (0)