From: Samuel Holland Date: Wed, 22 Jan 2020 06:04:00 +0000 (-0800) Subject: Input: axp20x-pek - enable wakeup for all AXP variants X-Git-Tag: v5.6-rc1~76^2^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=734b188136faed64b528a5a5559a32a2b8294c39;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Samuel Holland Link: https://lore.kernel.org/r/20200115051253.32603-3-samuel@sholland.org Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c index b1aed062914ca..c8f87df93a50e 100644 --- a/drivers/input/misc/axp20x-pek.c +++ b/drivers/input/misc/axp20x-pek.c @@ -280,8 +280,7 @@ static int axp20x_pek_probe_input_device(struct axp20x_pek *axp20x_pek, return error; } - if (axp20x_pek->axp20x->variant == AXP288_ID) - device_init_wakeup(&pdev->dev, true); + device_init_wakeup(&pdev->dev, true); return 0; }