diff options
| -rw-r--r-- | drivers/hid/hid-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 3f488ff88e0c..10a2c0866459 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
| @@ -718,6 +718,9 @@ static int hid_scan_main(struct hid_parser *parser, struct hid_item *item) | |||
| 718 | case HID_MAIN_ITEM_TAG_END_COLLECTION: | 718 | case HID_MAIN_ITEM_TAG_END_COLLECTION: |
| 719 | break; | 719 | break; |
| 720 | case HID_MAIN_ITEM_TAG_INPUT: | 720 | case HID_MAIN_ITEM_TAG_INPUT: |
| 721 | /* ignore constant inputs, they will be ignored by hid-input */ | ||
| 722 | if (data & HID_MAIN_ITEM_CONSTANT) | ||
| 723 | break; | ||
| 721 | for (i = 0; i < parser->local.usage_index; i++) | 724 | for (i = 0; i < parser->local.usage_index; i++) |
| 722 | hid_scan_input_usage(parser, parser->local.usage[i]); | 725 | hid_scan_input_usage(parser, parser->local.usage[i]); |
| 723 | break; | 726 | break; |
