aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input-quirks.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r--drivers/hid/hid-input-quirks.c25
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) {