summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-08-03 04:58:50 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-08-03 04:58:50 -0700
commit39fc21c853849c119e89183d902238df64c414fb (patch)
tree89bbdf99efa986b68b7676b26f97ca95d3689459
parente47e325359819297ce21f74a241e986c32dcde15 (diff)
parentee2823ff3271d649fc6c662d1028334b0a2ab57d (diff)
Merge "input: touchscreen: Change touch driver suspend code flow for XO shutdown"
-rw-r--r--drivers/input/touchscreen/it7258_ts_i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/it7258_ts_i2c.c b/drivers/input/touchscreen/it7258_ts_i2c.c
index 96cb5b3a4d45..1fa28f1f0d9d 100644
--- a/drivers/input/touchscreen/it7258_ts_i2c.c
+++ b/drivers/input/touchscreen/it7258_ts_i2c.c
@@ -1898,11 +1898,11 @@ static int IT7260_ts_suspend(struct device *dev)
return -EBUSY;
}
- /* put the device in low power idle mode */
- IT7260_ts_chipLowPowerMode(PWR_CTL_LOW_POWER_MODE);
-
if (device_may_wakeup(dev)) {
if (!gl_ts->device_needs_wakeup) {
+ /* put the device in low power idle mode */
+ IT7260_ts_chipLowPowerMode(PWR_CTL_LOW_POWER_MODE);
+
gl_ts->device_needs_wakeup = true;
enable_irq_wake(gl_ts->client->irq);
}