From e3b8944320af2f3b487bc33053f0dc8b0256583f Mon Sep 17 00:00:00 2001 From: Mike Corrigan Date: Fri, 3 Dec 2010 13:33:35 -0600 Subject: [PATCH] input: touchscreen: qtouch: Recalibrate on resume Added a forced calibration on resume. Change-Id: I74512e088452a9fc9c3dabcf385c4e6151280868 Signed-off-by: Mike Corrigan --- drivers/input/touchscreen/qtouch_obp_ts.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/input/touchscreen/qtouch_obp_ts.c b/drivers/input/touchscreen/qtouch_obp_ts.c index 22d34db36935..d45a6e083c17 100644 --- a/drivers/input/touchscreen/qtouch_obp_ts.c +++ b/drivers/input/touchscreen/qtouch_obp_ts.c @@ -1935,6 +1935,11 @@ static int qtouch_ts_resume(struct i2c_client *client) ts->enable_irq_flag = 0; return -EIO; } + ret = qtouch_force_calibration(ts); + if (ret != 0) { + pr_err("%s: Unable to recalibrate after power config\n", __func__); + return ret; + } /* Point the address pointer to the message processor. * Must do this before enabling interrupts */ -- 2.34.1