Commit 39467fc1 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: ucb1400_ts - fix suspend and resume handling

Instead of stopping the touchscreen we were starting it in suspend, and
disabling it in resume.

Fixes: c899afed ("Input: ucb1400_ts - convert to threaded IRQ")
Reported-by: default avatarAnton Volkov <avolkov@ispras.ru>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 47014752
...@@ -414,7 +414,7 @@ static int __maybe_unused ucb1400_ts_suspend(struct device *dev) ...@@ -414,7 +414,7 @@ static int __maybe_unused ucb1400_ts_suspend(struct device *dev)
mutex_lock(&idev->mutex); mutex_lock(&idev->mutex);
if (idev->users) if (idev->users)
ucb1400_ts_start(ucb); ucb1400_ts_stop(ucb);
mutex_unlock(&idev->mutex); mutex_unlock(&idev->mutex);
return 0; return 0;
...@@ -428,7 +428,7 @@ static int __maybe_unused ucb1400_ts_resume(struct device *dev) ...@@ -428,7 +428,7 @@ static int __maybe_unused ucb1400_ts_resume(struct device *dev)
mutex_lock(&idev->mutex); mutex_lock(&idev->mutex);
if (idev->users) if (idev->users)
ucb1400_ts_stop(ucb); ucb1400_ts_start(ucb);
mutex_unlock(&idev->mutex); mutex_unlock(&idev->mutex);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment