summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-waltop.c
diff options
context:
space:
mode:
authorNikolai Kondrashov2010-08-22 19:26:22 +0200
committerJiri Kosina2010-09-02 09:36:11 +0200
commit67168fd7d4044f21c542128529216cfaad23c03e (patch)
treece7fe277fca3fd2ef32fdf055431e680a668e1a9 /drivers/hid/hid-waltop.c
parentHID: waltop: comment on tablet modes (diff)
downloadkernel-qcow2-linux-67168fd7d4044f21c542128529216cfaad23c03e.tar.gz
kernel-qcow2-linux-67168fd7d4044f21c542128529216cfaad23c03e.tar.xz
kernel-qcow2-linux-67168fd7d4044f21c542128529216cfaad23c03e.zip
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>
Diffstat (limited to 'drivers/hid/hid-waltop.c')
0 files changed, 0 insertions, 0 deletions