CHROMIUM: Input: atmel_mxt_ts - add calibrate sysfs entry
authorDaniel Kurtz <djkurtz@chromium.org>
Sun, 22 Apr 2012 15:29:25 +0000 (23:29 +0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:12:08 +0000 (15:12 -0700)
commit46673a55ba52683073cff30b5ee1a753eb116bac
treee26c1287b7e7dd0e4203645ba300b5435a0c4982
parent09698c80ba8a51276ede2b0290e65f5ea156dc2c
CHROMIUM: Input: atmel_mxt_ts - add calibrate sysfs entry

In some situations, a touch surface may get out of calibration.
It is useful to provide a means for userspace to trigger a recal, so add a
calibrate sysfs entry.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chrome-os-partner:9148
TEST=echo 1 > /sys/bus/i2c/drivers/atmel_mxt_ts/<dev>/calibrate

Change-Id: Idbdd7bf4f412f03e36604a2a1fae162f059234d3
Reviewed-on: https://gerrit.chromium.org/gerrit/20812
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
drivers/input/touchscreen/atmel_mxt_ts.c