input: atmel_mxt_ts: Send calibrate command during resume

Touch controller might freeze because of bugs in firmware,
water drops on the panel or other extreme environmental
conditions. In such cases, recover touch by sending
calibrate command during resume.

Change-Id: I821e984fb035e4997ee1bfc78ce7c912f9a08c94
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
diff --git a/include/linux/i2c/atmel_mxt_ts.h b/include/linux/i2c/atmel_mxt_ts.h
index 5c3c728..348a231 100644
--- a/include/linux/i2c/atmel_mxt_ts.h
+++ b/include/linux/i2c/atmel_mxt_ts.h
@@ -73,6 +73,7 @@
 	int irq_gpio;
 	u32 irq_gpio_flags;
 	int *key_codes;
+	bool need_calibration;
 
 	u8(*read_chg) (void);
 	int (*init_hw) (bool);