From: Mike Corrigan Date: Fri, 3 Dec 2010 19:33:35 +0000 (-0600) Subject: input: touchscreen: qtouch: Recalibrate on resume X-Git-Tag: firefly_0821_release~9834^2~282 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e3b8944320af2f3b487bc33053f0dc8b0256583f;p=firefly-linux-kernel-4.4.55.git input: touchscreen: qtouch: Recalibrate on resume Added a forced calibration on resume. Change-Id: I74512e088452a9fc9c3dabcf385c4e6151280868 Signed-off-by: Mike Corrigan --- 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 */