diff options
| -rw-r--r-- | drivers/hid/hid-core.c | 17 | ||||
| -rw-r--r-- | include/linux/hid.h | 4 |
2 files changed, 7 insertions, 14 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 73bd9e2e42bc..aef7c56ca5e7 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
| @@ -780,22 +780,19 @@ static int hid_scan_report(struct hid_device *hid) | |||
| 780 | hid->group = HID_GROUP_MULTITOUCH_WIN_8; | 780 | hid->group = HID_GROUP_MULTITOUCH_WIN_8; |
| 781 | 781 | ||
| 782 | /* | 782 | /* |
| 783 | * Vendor specific handlings | ||
| 784 | */ | ||
| 785 | if ((hid->vendor == USB_VENDOR_ID_SYNAPTICS) && | ||
| 786 | (hid->group == HID_GROUP_GENERIC) && | ||
| 787 | /* only bind to the mouse interface of composite USB devices */ | ||
| 788 | (hid->bus != BUS_USB || hid->type == HID_TYPE_USBMOUSE)) | ||
| 789 | /* hid-rmi should take care of them, not hid-generic */ | ||
| 790 | hid->group = HID_GROUP_RMI; | ||
| 791 | |||
| 792 | /* | ||
| 793 | * Vendor specific handlings | 783 | * Vendor specific handlings |
| 794 | */ | 784 | */ |
| 795 | switch (hid->vendor) { | 785 | switch (hid->vendor) { |
| 796 | case USB_VENDOR_ID_WACOM: | 786 | case USB_VENDOR_ID_WACOM: |
| 797 | hid->group = HID_GROUP_WACOM; | 787 | hid->group = HID_GROUP_WACOM; |
| 798 | break; | 788 | break; |
| 789 | case USB_VENDOR_ID_SYNAPTICS: | ||
| 790 | if ((hid->group == HID_GROUP_GENERIC) && | ||
| 791 | (hid->bus != BUS_USB || hid->type == HID_TYPE_USBMOUSE)) | ||
| 792 | /* hid-rmi should only bind to the mouse interface of | ||
| 793 | * composite USB devices */ | ||
| 794 | hid->group = HID_GROUP_RMI; | ||
| 795 | break; | ||
| 799 | } | 796 | } |
| 800 | 797 | ||
| 801 | vfree(parser); | 798 | vfree(parser); |
diff --git a/include/linux/hid.h b/include/linux/hid.h index 78ea9bf941cd..5b1ff6110e25 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
| @@ -312,10 +312,6 @@ struct hid_item { | |||
| 312 | * Vendor specific HID device groups | 312 | * Vendor specific HID device groups |
| 313 | */ | 313 | */ |
| 314 | #define HID_GROUP_RMI 0x0100 | 314 | #define HID_GROUP_RMI 0x0100 |
| 315 | |||
| 316 | /* | ||
| 317 | * Vendor specific HID device groups | ||
| 318 | */ | ||
| 319 | #define HID_GROUP_WACOM 0x0101 | 315 | #define HID_GROUP_WACOM 0x0101 |
| 320 | 316 | ||
| 321 | /* | 317 | /* |
