diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-06-23 17:31:09 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-10-14 17:50:51 -0400 |
commit | 14a21cd459f97e3b3cc4fcde48fc5bcdb81d097e (patch) | |
tree | cff11c6bad54ddecce5d74f6391fb487ac0104eb /drivers/hid/hid-input-quirks.c | |
parent | 0f2213208f8da51bcb665309e3468f000489c04f (diff) |
HID: move a4tech quirks
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
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.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c index 6e7314f7b998..5bacf181a8ca 100644 --- a/drivers/hid/hid-input-quirks.c +++ b/drivers/hid/hid-input-quirks.c | |||
@@ -236,31 +236,6 @@ int hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, struc | |||
236 | 236 | ||
237 | input = field->hidinput->input; | 237 | input = field->hidinput->input; |
238 | 238 | ||
239 | if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_7) && | ||
240 | (usage->hid == 0x00090007)) { | ||
241 | if (value) hid->quirks |= HID_QUIRK_2WHEEL_MOUSE_HACK_ON; | ||
242 | else hid->quirks &= ~HID_QUIRK_2WHEEL_MOUSE_HACK_ON; | ||
243 | return 1; | ||
244 | } | ||
245 | |||
246 | if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_B8) && | ||
247 | (usage->type == EV_REL) && | ||
248 | (usage->code == REL_WHEEL)) { | ||
249 | hid->delayed_value = value; | ||
250 | return 1; | ||
251 | } | ||
252 | |||
253 | if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_B8) && | ||
254 | (usage->hid == 0x000100b8)) { | ||
255 | input_event(input, EV_REL, value ? REL_HWHEEL : REL_WHEEL, hid->delayed_value); | ||
256 | return 1; | ||
257 | } | ||
258 | |||
259 | if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_ON) && (usage->code == REL_WHEEL)) { | ||
260 | input_event(input, usage->type, REL_HWHEEL, value); | ||
261 | return 1; | ||
262 | } | ||
263 | |||
264 | /* handle the temporary quirky mapping to HWHEEL */ | 239 | /* handle the temporary quirky mapping to HWHEEL */ |
265 | if (hid->quirks & HID_QUIRK_HWHEEL_WHEEL_INVERT && | 240 | if (hid->quirks & HID_QUIRK_HWHEEL_WHEEL_INVERT && |
266 | usage->type == EV_REL && usage->code == REL_HWHEEL) { | 241 | usage->type == EV_REL && usage->code == REL_HWHEEL) { |