HID: core: do not reject devices when they declare too many usages
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 24 Jul 2015 16:02:22 +0000 (12:02 -0400)
committerJiri Kosina <jkosina@suse.com>
Mon, 27 Jul 2015 12:41:30 +0000 (14:41 +0200)
commitba53219809f4b3a08f21600a0f3b675620d518bc
treec2fe0808f9918180d534a085f5591d5374032669
parent3eb4351af42bd8b6de20daab07b204a85c35248f
HID: core: do not reject devices when they declare too many usages

Some device present proprietary collections with a usage min of 0x00 and
a usage max of 0xffff. hid-core currently reject them while most of the
time this is harmless.
Let's ignore the exceeding usages, and hope for the best.

Reported-by: Simon Wörner <mail@simon-woerner.de>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-core.c