summaryrefslogtreecommitdiff
path: root/drivers/input/misc/axp20x-pek.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-01-22 09:04:00 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-01-22 09:05:28 +0300
commit734b188136faed64b528a5a5559a32a2b8294c39 (patch)
tree46726b62111e4cf7dfcb2375d32bfa4086733a05 /drivers/input/misc/axp20x-pek.c
parentfe77f9bb1185e6986fd0246cf16f02954d7a09bf (diff)
downloadlinux-734b188136faed64b528a5a5559a32a2b8294c39.tar.xz
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 <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>
Diffstat (limited to 'drivers/input/misc/axp20x-pek.c')
-rw-r--r--drivers/input/misc/axp20x-pek.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c
index b1aed062914c..c8f87df93a50 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;
}