CHROMIUM: Input: atmel_mxt_ts - add backupnv sysfs entry
authorDaniel Kurtz <djkurtz@chromium.org>
Mon, 19 Mar 2012 02:09:41 +0000 (10:09 +0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:12:05 +0000 (15:12 -0700)
commit2f411afb1345adf7445ece5ee320f76a8f5caca2
treeeaf6d82b7838f0c19741b97f2ee7e741f8f8fb74
parent1b948c74e888f8a693311886f2fda4c2f177ec84
CHROMIUM: Input: atmel_mxt_ts - add backupnv sysfs entry

Writing to the object sysfs entry permits individual object table entries
to be modified in the device RAM at runtime.  To permanently save
the settings, they must be written to Non-Volatile memory (NVM).
This patch adds a write-only sysfs entry to allow userspace to save
current settings to NVM, but restricts access to root.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium-os:27713
TEST=ls -al /sys/.../backupnv
 -> --w------- 1 root root 4096 Feb 14 20:54 backupnv

Change-Id: Id767e0b7ef7f882d6a45ebfe7e96e02800ef2cb8
Reviewed-on: https://gerrit.chromium.org/gerrit/17945
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