android_kernel_xiaomi_sm8350/drivers/hid
Jiri Kosina 66da876962 USB HID: report descriptor of Cypress USB barcode readers needs fixup
Certain versions of Cypress USB barcode readers (this problem is known to
happen at least with PIDs 0xde61 and 0xde64) have report descriptor which
has swapped usage min and usage max tag. This results in HID parser failing
for report descriptor of these devices, as it (wrongly) requires allocating
more usages than HID_MAX_USAGES.

Solve this by walking through the report descriptor for such devices, and swap
the usage min and usage max items (and their values) to be in proper order.

Reported-by: Bret Towe <magnade@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2007-05-09 02:52:51 +02:00
..
usbhid USB HID: report descriptor of Cypress USB barcode readers needs fixup 2007-05-09 02:52:51 +02:00
hid-core.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
hid-debug.c HID: hid-debug.c should #include <linux/hid-debug.h> 2007-03-01 09:52:42 +01:00
hid-input.c HID: add input mappings for non-working keys on Logitech S510 remote 2007-05-09 02:52:51 +02:00
Kconfig USB HID: move usbhid code from drivers/usb/input to drivers/hid/usbhid 2007-04-11 10:36:02 +02:00
Makefile USB HID: move usbhid code from drivers/usb/input to drivers/hid/usbhid 2007-04-11 10:36:02 +02:00