OSDN Git Service

Input: axp20x-pek - enable wakeup for all AXP variants
authorSamuel Holland <samuel@sholland.org>
Wed, 22 Jan 2020 06:04:00 +0000 (22:04 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Jan 2020 06:05:28 +0000 (22:05 -0800)
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 <hdegoede@redhat.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20200115051253.32603-3-samuel@sholland.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/axp20x-pek.c

index b1aed06..c8f87df 100644 (file)
@@ -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;
 }