Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39fc21c8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: touchscreen: Change touch driver suspend code flow for XO shutdown"

parents e47e3253 ee2823ff
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1898,11 +1898,11 @@ static int IT7260_ts_suspend(struct device *dev)
		return -EBUSY;
		return -EBUSY;
	}
	}


	if (device_may_wakeup(dev)) {
		if (!gl_ts->device_needs_wakeup) {
			/* put the device in low power idle mode */
			/* put the device in low power idle mode */
			IT7260_ts_chipLowPowerMode(PWR_CTL_LOW_POWER_MODE);
			IT7260_ts_chipLowPowerMode(PWR_CTL_LOW_POWER_MODE);


	if (device_may_wakeup(dev)) {
		if (!gl_ts->device_needs_wakeup) {
			gl_ts->device_needs_wakeup = true;
			gl_ts->device_needs_wakeup = true;
			enable_irq_wake(gl_ts->client->irq);
			enable_irq_wake(gl_ts->client->irq);
		}
		}