Input: atmel_mxt_ts - implement CRC check for configuration data
authorNick Dyer <nick.dyer@itdev.co.uk>
Mon, 19 May 2014 06:04:46 +0000 (23:04 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 May 2014 06:27:26 +0000 (23:27 -0700)
commitc3f78043d5aea39205a14c580babd87fbdcfa148
treea04d28b1eae6a4da2d528c9f9e2f343e88ba88f9
parent7bed6805615a215c3e23d5819ec3003b2fd8b98c
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>
drivers/input/touchscreen/atmel_mxt_ts.c
include/linux/i2c/atmel_mxt_ts.h