CHROMIUM: Input: atmel_mxt_ts - add sysfs entry to read info checksum
authorDaniel Kurtz <djkurtz@chromium.org>
Fri, 27 Apr 2012 13:44:58 +0000 (21:44 +0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:12:10 +0000 (15:12 -0700)
commit7634a85436f8b186e82a35861ea179d2327855a2
tree402acb2032c403cb48a63452c2baf25678f72fe3
parent9d6c94f9af8b0d1fac9bf22c8c3948378b14a413
CHROMIUM: Input: atmel_mxt_ts - add sysfs entry to read info checksum

The device stores the Information Block Checksum in the 3 bytes
immediately following the Information Block.

Read these three bytes, cache the value, and add a sysfs entry so
userspace can read it.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chrome-os-partner:9103
TEST=cat /sys/bus/i2c/drivers/atmel_mxt_ts/2-004b/info_csum

Change-Id: I27512c624bad15674bc7c50c15717913595affe4
Reviewed-on: https://gerrit.chromium.org/gerrit/20599
Reviewed-by: Benson Leung <bleung@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/input/touchscreen/atmel_mxt_ts.c