Skip to content

Commit 39467fc

Browse files
committed
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: c899afe ("Input: ucb1400_ts - convert to threaded IRQ") Reported-by: Anton Volkov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 4701475 commit 39467fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/touchscreen/ucb1400_ts.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int __maybe_unused ucb1400_ts_suspend(struct device *dev)
414414
mutex_lock(&idev->mutex);
415415

416416
if (idev->users)
417-
ucb1400_ts_start(ucb);
417+
ucb1400_ts_stop(ucb);
418418

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

430430
if (idev->users)
431-
ucb1400_ts_stop(ucb);
431+
ucb1400_ts_start(ucb);
432432

433433
mutex_unlock(&idev->mutex);
434434
return 0;

0 commit comments

Comments
 (0)