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

Commit c39dd15c authored by Shantanu Jain's avatar Shantanu Jain Committed by Gerrit - the friendly Code Review server
Browse files

input: touchscreen: release all touches before suspend



Release all touches before going to suspend for goodix
gt9xx TS driver.

Change-Id: Ia3446f3c23be4fe29bfea5f85b22e8b903cffb9e
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
Signed-off-by: default avatarSudhakar Manapati <smanap@codeaurora.org>
parent 6ae85943
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1935,7 +1935,7 @@ Output:
*******************************************************/
static void goodix_ts_suspend(struct goodix_ts_data *ts)
{
	int ret = -1;
	int ret = -1, i;

	GTP_DEBUG_FUNC();

@@ -1951,6 +1951,13 @@ static void goodix_ts_suspend(struct goodix_ts_data *ts)
		gtp_irq_disable(ts);
	else
		hrtimer_cancel(&ts->timer);

	for (i = 0; i < GTP_MAX_TOUCH; i++)
		gtp_touch_up(ts, i);

	input_report_key(ts->input_dev, BTN_TOUCH, 0);
	input_sync(ts->input_dev);

	ret = gtp_enter_sleep(ts);
#endif
	if (ret < 0)