Skip to content

Commit

Permalink
Inpur: recognize and ignore Logitech vendor usages in HID
Browse files Browse the repository at this point in the history
These get in our way with MX mice.

Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Vojtech Pavlik authored and Dmitry Torokhov committed Sep 5, 2005
1 parent 7545c24 commit b8c9c64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/input/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions drivers/usb/input/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b8c9c64

Please sign in to comment.