atmel_mxt_ts: Change the touch calibration condition
authorLeo Yan <leo.yan@intel.com>
Fri, 18 May 2012 02:22:34 +0000 (10:22 +0800)
committerbuildbot <buildbot@intel.com>
Thu, 24 May 2012 08:42:57 +0000 (01:42 -0700)
commite1a5b9cfefe16f7de8024562f7c988b1db7e4272
treeaa833e2dcaeca87b95155ca566c449d4e7133ddd
parent2ced0edb099e6a52b96df10744ba90e49d9cdaf7
atmel_mxt_ts: Change the touch calibration condition

BZ: 29396

When the screen is resumed, we won't do calibration if there is a
finger on the touch panel since that will cause the finger pressed
area has wrong calibration and couldn't detect the touch later.

Change-Id: I8c54f2629592e14bc30b3bea1e4f35bd0520a4cf
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/49296
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/input/touchscreen/atmel_mxt224.c