]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbeca972f2f37d25c4599b5b5a35eea2dc996e88c
treea04d28b1eae6a4da2d528c9f9e2f343e88ba88f9
parent884dc42eaf784ff7882e487099eb647d6055fd94
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