hwmon: (ams) Fix permissions on 'joystick' module parameter
commit0a02002268bf624a8b0eaf3b4eb5c4207bd80d8b
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 17 Oct 2008 15:51:12 +0000 (17 17:51 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Fri, 17 Oct 2008 15:51:12 +0000 (17 17:51 +0200)
treef49337ad662cdcbd56a947f2f16684c95e7c49e5
parent810ad7b62c0f075dc44ecc781b24c7f6ba388da5
hwmon: (ams) Fix permissions on 'joystick' module parameter

We should not allow writes to the 'joystick' module parameters since
writing there will not trigger creation of the input device. Disable
writes since we provide alternative way of enabling input device via
AMS device's sysfs attribute.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/ams/ams-input.c