Skip to content

Commit

Permalink
Input: ucb1400_ts - fix suspend and resume handling
Browse files Browse the repository at this point in the history
Instead of stopping the touchscreen we were starting it in suspend, and
disabling it in resume.

Fixes: c899afe ("Input: ucb1400_ts - convert to threaded IRQ")
Reported-by: Anton Volkov <avolkov@ispras.ru>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
dtor committed Sep 11, 2017
1 parent 4701475 commit 39467fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/touchscreen/ucb1400_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static int __maybe_unused ucb1400_ts_suspend(struct device *dev)
mutex_lock(&idev->mutex);

if (idev->users)
ucb1400_ts_start(ucb);
ucb1400_ts_stop(ucb);

mutex_unlock(&idev->mutex);
return 0;
Expand All @@ -428,7 +428,7 @@ static int __maybe_unused ucb1400_ts_resume(struct device *dev)
mutex_lock(&idev->mutex);

if (idev->users)
ucb1400_ts_stop(ucb);
ucb1400_ts_start(ucb);

mutex_unlock(&idev->mutex);
return 0;
Expand Down

0 comments on commit 39467fc

Please sign in to comment.