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>
This commit is contained in:
Nick Dyer 2014-05-18 23:04:46 -07:00 committed by Dmitry Torokhov
parent 7bed680561
commit c3f78043d5
2 changed files with 53 additions and 8 deletions

View file

@ -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;