Input: tsc2005 - hide selftest attribute if we can't reset
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 17 Mar 2011 05:10:37 +0000 (22:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 17 Mar 2011 06:29:00 +0000 (23:29 -0700)
commit8dbcc432c2b4adf4ff7183afc5f2b42276b2a987
treef944bc8f99c380c2fe9090a038d4a0ebeb5ea60c
parent99bb892d8a3f4f384d61e5d20499247a7cdd3d74
Input: tsc2005 - hide selftest attribute if we can't reset

If implementation to perform self-test/reset has not been provided by the
platform code hide 'selftest' sysfs attribute instead of returning error
when someone tries to use it.

Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/tsc2005.c