diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hidp/core.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 4ae3207e8a98..f3d830747b96 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c | |||
@@ -683,27 +683,6 @@ static void hidp_close(struct hid_device *hid) | |||
683 | { | 683 | { |
684 | } | 684 | } |
685 | 685 | ||
686 | static const struct { | ||
687 | __u16 idVendor; | ||
688 | __u16 idProduct; | ||
689 | unsigned quirks; | ||
690 | } hidp_blacklist[] = { | ||
691 | /* Apple wireless Mighty Mouse */ | ||
692 | { 0x05ac, 0x030c, HID_QUIRK_MIGHTYMOUSE | HID_QUIRK_INVERT_HWHEEL }, | ||
693 | |||
694 | { } /* Terminating entry */ | ||
695 | }; | ||
696 | |||
697 | static void hidp_setup_quirks(struct hid_device *hid) | ||
698 | { | ||
699 | unsigned int n; | ||
700 | |||
701 | for (n = 0; hidp_blacklist[n].idVendor; n++) | ||
702 | if (hidp_blacklist[n].idVendor == le16_to_cpu(hid->vendor) && | ||
703 | hidp_blacklist[n].idProduct == le16_to_cpu(hid->product)) | ||
704 | hid->quirks = hidp_blacklist[n].quirks; | ||
705 | } | ||
706 | |||
707 | static int hidp_parse(struct hid_device *hid) | 686 | static int hidp_parse(struct hid_device *hid) |
708 | { | 687 | { |
709 | struct hidp_session *session = hid->driver_data; | 688 | struct hidp_session *session = hid->driver_data; |
@@ -729,7 +708,6 @@ static int hidp_parse(struct hid_device *hid) | |||
729 | 708 | ||
730 | session->req = NULL; | 709 | session->req = NULL; |
731 | 710 | ||
732 | hidp_setup_quirks(hid); | ||
733 | return 0; | 711 | return 0; |
734 | } | 712 | } |
735 | 713 | ||