Message ID | 20200115051253.32603-3-samuel@sholland.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 734b188136faed64b528a5a5559a32a2b8294c39 |
Headers | show |
Series | Input: axp20x-pek wakeup enablement | expand |
On Tue, Jan 14, 2020 at 11:12:53PM -0600, Samuel Holland wrote: > 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> Applied, thank you. > --- > drivers/input/misc/axp20x-pek.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c > index 0ace3fe3d7dc..1872607e87c3 100644 > --- a/drivers/input/misc/axp20x-pek.c > +++ b/drivers/input/misc/axp20x-pek.c > @@ -279,8 +279,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; > } > -- > 2.23.0 >
diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c index 0ace3fe3d7dc..1872607e87c3 100644 --- a/drivers/input/misc/axp20x-pek.c +++ b/drivers/input/misc/axp20x-pek.c @@ -279,8 +279,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; }