Skip to content

Commit 734b188

Browse files
smaeuldtor
authored andcommitted
Input: axp20x-pek - enable wakeup for all AXP variants
There are many devices, including several mobile battery-powered devices, using other AXP variants as their PMIC. Allow them to use the power key as a wakeup source. Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent fe77f9b commit 734b188

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/input/misc/axp20x-pek.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ static int axp20x_pek_probe_input_device(struct axp20x_pek *axp20x_pek,
280280
return error;
281281
}
282282

283-
if (axp20x_pek->axp20x->variant == AXP288_ID)
284-
device_init_wakeup(&pdev->dev, true);
283+
device_init_wakeup(&pdev->dev, true);
285284

286285
return 0;
287286
}

0 commit comments

Comments
 (0)