Skip to content

Commit

Permalink
Input: axp20x-pek - enable wakeup for all AXP variants
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Holland authored and Dmitry Torokhov committed Jan 22, 2020
1 parent fe77f9b commit 734b188
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/input/misc/axp20x-pek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 734b188

Please sign in to comment.