aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input-quirks.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-06-18 17:36:49 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:50:49 -0400
commit8c19a51591d06f5226499972567f528cf6066bb7 (patch)
treeacfa47c0cb371c8b87f7282d19c627e44032dbe2 /drivers/hid/hid-input-quirks.c
parentd458a9dfc4de24870b8c747484b1988726534bee (diff)
HID: move apple quirks
Move them from the core code to a separate driver. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r--drivers/hid/hid-input-quirks.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
index 10451ca3a786..878e193c6d75 100644
--- a/drivers/hid/hid-input-quirks.c
+++ b/drivers/hid/hid-input-quirks.c
@@ -331,19 +331,11 @@ int hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, struc
331 return 1; 331 return 1;
332 } 332 }
333 333
334 if ((hid->quirks & HID_QUIRK_INVERT_HWHEEL) && (usage->code == REL_HWHEEL)) {
335 input_event(input, usage->type, usage->code, -value);
336 return 1;
337 }
338
339 if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_ON) && (usage->code == REL_WHEEL)) { 334 if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_ON) && (usage->code == REL_WHEEL)) {
340 input_event(input, usage->type, REL_HWHEEL, value); 335 input_event(input, usage->type, REL_HWHEEL, value);
341 return 1; 336 return 1;
342 } 337 }
343 338
344 if ((hid->quirks & HID_QUIRK_APPLE_HAS_FN) && hidinput_apple_event(hid, input, usage, value))
345 return 1;
346
347 /* Handling MS keyboards special buttons */ 339 /* Handling MS keyboards special buttons */
348 if (hid->quirks & HID_QUIRK_MICROSOFT_KEYS && 340 if (hid->quirks & HID_QUIRK_MICROSOFT_KEYS &&
349 usage->hid == (HID_UP_MSVENDOR | 0xff05)) { 341 usage->hid == (HID_UP_MSVENDOR | 0xff05)) {