]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/hid-monterey.c
HID: allow resizing and replacing report descriptors
authorNikolai Kondrashov <spbnick@gmail.com>
Fri, 6 Aug 2010 19:03:06 +0000 (23:03 +0400)
committerJiri Kosina <jkosina@suse.cz>
Mon, 9 Aug 2010 17:52:42 +0000 (19:52 +0200)
commit73e4008ddddc84d5f2499c17012b340a0dae153e
treed3adfa8c5792e71c21cb7a9cd18517cce9c92685
parent3cfc2c42c1cbc8e238bb9c0612c0df4565e3a8b4
HID: allow resizing and replacing report descriptors

Update hid_driver's report_fixup prototype to allow changing report
descriptor size and/or returning completely different report descriptor.
Update existing usage accordingly.

This is to give more freedom in descriptor fixup and to allow having a whole
fixed descriptor in the code for the sake of readability.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 files changed:
drivers/hid/hid-apple.c
drivers/hid/hid-cherry.c
drivers/hid/hid-core.c
drivers/hid/hid-cypress.c
drivers/hid/hid-elecom.c
drivers/hid/hid-kye.c
drivers/hid/hid-lg.c
drivers/hid/hid-microsoft.c
drivers/hid/hid-monterey.c
drivers/hid/hid-ortek.c
drivers/hid/hid-petalynx.c
drivers/hid/hid-prodikeys.c
drivers/hid/hid-samsung.c
drivers/hid/hid-sony.c
drivers/hid/hid-sunplus.c
drivers/hid/hid-zydacron.c
include/linux/hid.h