input: touchscreen: qtouch: Recalibrate on resume
authorMike Corrigan <michael.corrigan@motorola.com>
Fri, 3 Dec 2010 19:33:35 +0000 (13:33 -0600)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 3 Dec 2010 21:24:05 +0000 (13:24 -0800)
Added a forced calibration on resume.

Change-Id: I74512e088452a9fc9c3dabcf385c4e6151280868
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>
drivers/input/touchscreen/qtouch_obp_ts.c

index 22d34db36935da427da2000f3b5f39766b9ea4d4..d45a6e083c1741b69c122896eee6a7e3c8d849f0 100644 (file)
@@ -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 */