]> git.baikalelectronics.ru Git - kernel.git/commit
HID: Scan the device for group info before adding it
authorHenrik Rydberg <rydberg@euromail.se>
Mon, 23 Apr 2012 10:07:03 +0000 (12:07 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 May 2012 10:54:54 +0000 (12:54 +0200)
commit7a318ad29423ca68f38697f5d737ace600582615
treee56f9e51a034c4fb0c9b89a903b64c41b050d1d3
parentc561428b745bd292cb7da82f02058432210f73ae
HID: Scan the device for group info before adding it

In order to allow the report descriptor to influence the hid device
properties, one needs to parse the descriptor early, without reference
to any driver. Scan the descriptor for group information during device
add, before the device has been broadcast to userland. The device
modalias will contain group information which can be used to
differentiate between modules. For starters, just handle the generic
group.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
include/linux/hid.h