summaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorNick Dyer <nick.dyer@itdev.co.uk>2014-05-18 23:04:46 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-05-18 23:27:26 -0700
commitc3f78043d5aea39205a14c580babd87fbdcfa148 (patch)
treea04d28b1eae6a4da2d528c9f9e2f343e88ba88f9 /include/linux/i2c
parent7bed6805615a215c3e23d5819ec3003b2fd8b98c (diff)
downloadlinux-c3f78043d5aea39205a14c580babd87fbdcfa148.tar.gz
linux-c3f78043d5aea39205a14c580babd87fbdcfa148.tar.bz2
linux-c3f78043d5aea39205a14c580babd87fbdcfa148.zip
Input: atmel_mxt_ts - implement CRC check for configuration data
The configuration is stored in NVRAM on the maXTouch chip. When the device is reset it reports a CRC of the stored configuration values. Therefore it isn't necessary to send the configuration on each probe - we can check the CRC matches and avoid a timeconsuming backup/reset cycle. Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk> Acked-by: Benson Leung <bleung@chromium.org> Acked-by: Yufeng Shen <miletus@chromium.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r--include/linux/i2c/atmel_mxt_ts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/atmel_mxt_ts.h b/include/linux/i2c/atmel_mxt_ts.h
index d26080dc606c..9f92135b6620 100644
--- a/include/linux/i2c/atmel_mxt_ts.h
+++ b/include/linux/i2c/atmel_mxt_ts.h
@@ -29,6 +29,7 @@
struct mxt_platform_data {
const u8 *config;
size_t config_length;
+ u32 config_crc;
unsigned int x_size;
unsigned int y_size;