]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ams) Fix permissions on 'joystick' module parameter
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 17 Oct 2008 15:51:12 +0000 (17:51 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Fri, 17 Oct 2008 15:51:12 +0000 (17:51 +0200)
commit92f5dd90cc2f4d677ea9c2bd4826e7422b590a10
treef49337ad662cdcbd56a947f2f16684c95e7c49e5
parent73f828330016e1340c51d509a5f756e2f9b91b03
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