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)
commit734c660931095ae165c0db6ff60558fc4173bfd0
treee56f9e51a034c4fb0c9b89a903b64c41b050d1d3
parent4d53b8012f1f01ddb3f24db2031b042bb4cbd0d0
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