Input: HID - add a quirk for the Logitech USB Receiver
[deliverable/linux.git] / drivers / usb / input / hid-input.c
index 9a808a3b4d3750e1a6e4a93a3c9cac1b98c1a667..c8ce65c70a42b876959c6df2284c1c9efaaf14a1 100644 (file)
@@ -564,6 +564,10 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
                || ((device->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_7) && (usage->hid == 0x00090007)))
                goto ignore;
 
+       if ((device->quirks & HID_QUIRK_BAD_RELATIVE_KEYS) &&
+           usage->type == EV_KEY && (field->flags & HID_MAIN_ITEM_RELATIVE))
+               field->flags &= ~HID_MAIN_ITEM_RELATIVE;
+
        set_bit(usage->type, input->evbit);
 
        while (usage->code <= max && test_and_set_bit(usage->code, bit))
This page took 0.025376 seconds and 5 git commands to generate.