summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-lg.h
diff options
context:
space:
mode:
authorMichal Malý <madcatxster@gmail.com>2011-08-04 16:20:40 +0200
committerJiri Kosina <jkosina@suse.cz>2011-08-04 16:45:55 +0200
commit30bb75d71b3732c0adb6297815288ce0fb9cc04c (patch)
tree7666cc033dbf3a4239803b43702f2d4a57447a8e /drivers/hid/hid-lg.h
parent96440c8a00e22e541135dee2eba9f3e7d8195f65 (diff)
HID: lg4ff - Add range setting support and sysfs interface
Wheel range of certain Logitech wheels - namely Driving Force GT, Driving Force Pro, G25 and G27 can be adjusted. Minimu is 40 degrees, maximum 900. DFGT, G25 and G27 all use a common command, DFP uses another one. Range can be set from userspace by writing to "/sys/module/hid_logitech/drivers/hid:logitech/<dev>range". The driver use list to store range of each connected wheel; it's not possible to use driver_data in hid_device struct as it's already b hig-lg driver. Signed-off-by: Michal Malý <madcatxster@gmail.com> Signed-off-by: Simon Wood <simon@mungewell.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg.h')
-rw-r--r--drivers/hid/hid-lg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-lg.h b/drivers/hid/hid-lg.h
index b0100ba2ae0b..3a3295991ab3 100644
--- a/drivers/hid/hid-lg.h
+++ b/drivers/hid/hid-lg.h
@@ -21,8 +21,10 @@ static inline int lg3ff_init(struct hid_device *hdev) { return -1; }
#ifdef CONFIG_LOGIWII_FF
int lg4ff_init(struct hid_device *hdev);
+int lg4ff_deinit(struct hid_device *hdev);
#else
static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
+static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
#endif
#endif