Inpur: recognize and ignore Logitech vendor usages in HID
authorVojtech Pavlik <vojtech@suse.cz>
Mon, 5 Sep 2005 05:07:37 +0000 (00:07 -0500)
committerDmitry Torokhov <dtor_core@ameritech.net>
Mon, 5 Sep 2005 05:07:37 +0000 (00:07 -0500)
These get in our way with MX mice.

Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/usb/input/hid-input.c
drivers/usb/input/hid.h

index 63a4db7..3b162a1 100644 (file)
@@ -296,6 +296,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
                        break;
 
                case HID_UP_MSVENDOR:
+               case HID_UP_LOGIVENDOR:
 
                        goto ignore;
 
index c1b6b69..f3b85a0 100644 (file)
@@ -182,6 +182,7 @@ struct hid_item {
 #define HID_UP_PID             0x000f0000
 #define HID_UP_HPVENDOR         0xff7f0000
 #define HID_UP_MSVENDOR                0xff000000
+#define HID_UP_LOGIVENDOR      0x00ff0000
 
 #define HID_USAGE              0x0000ffff