linux/drivers/hid
Nikolai Kondrashov 67168fd7d4 HID: rdesc parser: remove local item size limit
The HID report descriptor parser requires local items, except "delimiters",
to have data. I.e. to have non-zero size. This removes the restriction.

The HID specification doesn't seem to have such restriction and, for
example, a "usage" item could have zero size if the usage ID is zero.
At least one usage page - Keyboard/Keypad lists zero ID as valid.

This doesn't seem to happen in the wild, probably because the official tool
for authoring report descriptors always puts data even for zero values for
some items, including "usage" items.

However, this makes little sense and at least one open source tool for
descriptor authoring generates zero data size "usage" items, which saves
some space, especially if many such items are used in a descriptor.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2010-09-02 09:36:11 +02:00
..
usbhid HID: waltop: add Media Tablet 14.1 inch support 2010-09-01 12:36:35 +02:00
Kconfig HID: add support for two Waltop tablets 2010-08-23 15:01:55 +02:00
Makefile HID: add support for two Waltop tablets 2010-08-23 15:01:55 +02:00
hid-3m-pct.c Merge branch 'upstream' into for-linus 2010-05-19 14:04:49 +02:00
hid-a4tech.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-apple.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-axff.c HID: add ACRUX game controller force feedback support 2010-07-19 12:13:23 +02:00
hid-belkin.c HID: adding __init/__exit macros to module init/exit functions 2009-07-23 01:28:01 +02:00
hid-cando.c HID: Support for the 11.6" Cando panel 2010-04-23 00:19:08 +02:00
hid-cherry.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-chicony.c HID: adding __init/__exit macros to module init/exit functions 2009-07-23 01:28:01 +02:00
hid-core.c HID: rdesc parser: remove local item size limit 2010-09-02 09:36:11 +02:00
hid-cypress.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-debug.c HID: eliminate a double lock in debug code 2010-06-21 13:41:54 +02:00
hid-drff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-egalax.c HID: egalax: update slab.h include 2010-04-10 21:29:09 +02:00
hid-elecom.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-ezkey.c HID: adding __init/__exit macros to module init/exit functions 2009-07-23 01:28:01 +02:00
hid-gaff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-gyration.c HID: Add the GYR4101US USB ID to hid-gyration 2010-05-24 19:07:57 +02:00
hid-ids.h HID: waltop: add Media Tablet 14.1 inch support 2010-09-01 12:36:35 +02:00
hid-input.c HID: Add Tablet Pick -> BTN_STYLUS2 mapping 2010-08-09 19:52:43 +02:00
hid-kensington.c HID: adding __init/__exit macros to module init/exit functions 2009-07-23 01:28:01 +02:00
hid-kye.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-lg.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-lg.h Merge branch 'master' into upstream 2010-02-02 23:10:39 +01:00
hid-lg2ff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-lg3ff.c HID: add driver for the Logitech Flight System G940 2010-01-13 00:26:31 +01:00
hid-lgff.c HID: add driver for the Logitech Flight System G940 2010-01-13 00:26:31 +01:00
hid-magicmouse.c HID: magicmouse: Correct parsing of large X and Y motions. 2010-07-11 23:06:14 +02:00
hid-microsoft.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-monterey.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-mosart.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-ntrig.c HID: ntrig: add support for new firwmare versions 2010-06-21 13:41:13 +02:00
hid-ortek.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-petalynx.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-picolcd.c HID: picolcd: implement refcounting of framebuffer 2010-07-12 18:07:36 +02:00
hid-pl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-prodikeys.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-quanta.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-roccat-kone.c HID: roccat: remove obsolete kone_abi_version sysfs attribute 2010-06-21 15:20:35 +02:00
hid-roccat-kone.h HID: roccat: remove obsolete kone_abi_version sysfs attribute 2010-06-21 15:20:35 +02:00
hid-roccat.c HID: roccat: introduce missing kfree 2010-06-02 11:08:42 +02:00
hid-roccat.h HID: roccat: fix whitespace warning from checkpatch.pl 2010-05-31 13:53:21 +02:00
hid-samsung.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-sjoy.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-sony.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-stantum.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-sunplus.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hid-tmff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-topseed.c HID: Add support for Conceptronic CLLRCMCE 2010-07-13 23:44:10 +02:00
hid-twinhan.c HID: add __init/__exit macros to twinhan.c 2009-09-29 13:58:20 +02:00
hid-uclogic.c HID: Add support for UC-Logic WP????U tablets 2010-08-09 19:52:43 +02:00
hid-wacom.c Revert "HID: add support for the Wacom Intuos 4 wireless" 2010-07-20 17:52:04 +02:00
hid-waltop.c HID: waltop: comment on tablet modes 2010-09-01 12:36:36 +02:00
hid-zpff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-zydacron.c HID: allow resizing and replacing report descriptors 2010-08-09 19:52:42 +02:00
hidraw.c HID: remove unused variable from hidraw_read 2010-05-25 09:47:19 +02:00