Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46229
b: refs/heads/master
c: 5556fea
h: refs/heads/master
i:
  46227: ec50d28
v: v3
  • Loading branch information
Anssi Hannula authored and Jiri Kosina committed Feb 5, 2007
1 parent 6f3e363 commit 6674081
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c4146067fd7889bc6fab6cdfd8b2795d745a2156
refs/heads/master: 5556feae1c4e1cf2021b5fb2ef99973125de2250
6 changes: 5 additions & 1 deletion trunk/drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ int hidinput_connect(struct hid_device *hid)
struct hid_input *hidinput = NULL;
struct input_dev *input_dev;
int i, j, k;
int max_report_type = HID_OUTPUT_REPORT;

INIT_LIST_HEAD(&hid->inputs);

Expand All @@ -828,7 +829,10 @@ int hidinput_connect(struct hid_device *hid)
if (i == hid->maxcollection)
return -1;

for (k = HID_INPUT_REPORT; k <= HID_OUTPUT_REPORT; k++)
if (hid->quirks & HID_QUIRK_SKIP_OUTPUT_REPORTS)
max_report_type = HID_INPUT_REPORT;

for (k = HID_INPUT_REPORT; k <= max_report_type; k++)
list_for_each_entry(report, &hid->report_enum[k].report_list, list) {

if (!report->maxfield)
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,9 @@ void usbhid_init_reports(struct hid_device *hid)
#define USB_VENDOR_ID_IMATION 0x0718
#define USB_DEVICE_ID_DISC_STAKKA 0xd000

#define USB_VENDOR_ID_PANTHERLORD 0x0810
#define USB_DEVICE_ID_PANTHERLORD_TWIN_USB_JOYSTICK 0x0001

/*
* Alphabetically sorted blacklist by quirk type.
*/
Expand Down Expand Up @@ -969,6 +972,8 @@ static const struct hid_blacklist {

{ USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_USB_RECEIVER, HID_QUIRK_BAD_RELATIVE_KEYS },

{ USB_VENDOR_ID_PANTHERLORD, USB_DEVICE_ID_PANTHERLORD_TWIN_USB_JOYSTICK, HID_QUIRK_MULTI_INPUT | HID_QUIRK_SKIP_OUTPUT_REPORTS },

{ 0, 0 }
};

Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ struct hid_item {
#define HID_QUIRK_INVERT_HWHEEL 0x00004000
#define HID_QUIRK_POWERBOOK_ISO_KEYBOARD 0x00008000
#define HID_QUIRK_BAD_RELATIVE_KEYS 0x00010000
#define HID_QUIRK_SKIP_OUTPUT_REPORTS 0x00020000

/*
* This is the global environment of the parser. This information is
Expand Down

0 comments on commit 6674081

Please sign in to comment.