Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68661
b: refs/heads/master
c: 82eb121
h: refs/heads/master
i:
  68659: 485d2ed
v: v3
  • Loading branch information
Jiri Kosina committed Oct 14, 2007
1 parent f77a85a commit 2639207
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77b296629d6e938e68de40195a9d500f209f6d10
refs/heads/master: 82eb121989c06e3de33b56ade1fa52c9e86c014e
7 changes: 7 additions & 0 deletions trunk/drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,13 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
if (field->flags & HID_MAIN_ITEM_CONSTANT)
goto ignore;

/* only LED usages are supported in output fields */
if (field->report_type == HID_OUTPUT_REPORT &&
(usage->hid & HID_USAGE_PAGE) != HID_UP_LED) {
dbg_hid_line(" [non-LED output field] ");
goto ignore;
}

switch (usage->hid & HID_USAGE_PAGE) {

case HID_UP_UNDEFINED:
Expand Down

0 comments on commit 2639207

Please sign in to comment.