Input: bu21013_ts - fix suspend when wake source
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Aug 2019 00:41:12 +0000 (17:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 2 Sep 2019 16:07:37 +0000 (09:07 -0700)
commit18aa4d6b67483b4dac08a537f6c4fc943eea5386
treee40cdca7bb2c933f5f0757b6931e187693f84d89
parentdb3e34d4036db59cbacc1bff1c622b23d85b766b
Input: bu21013_ts - fix suspend when wake source

If the touchscreen is configured as wakeup source we should not be cutting
off power to it.

Also, now that the driver relies on I2C client to supply IRQ, we do not
need to explicitly enable and disable IRQ for wakeup: if device is created
as wakeup source, I2C core will mark interrupt as wakeup one.

Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/bu21013_ts.c