diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2012-04-23 12:07:03 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-05-01 12:54:54 +0200 |
commit | 734c660931095ae165c0db6ff60558fc4173bfd0 (patch) | |
tree | e56f9e51a034c4fb0c9b89a903b64c41b050d1d3 /include | |
parent | 4d53b8012f1f01ddb3f24db2031b042bb4cbd0d0 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index a0e27ddb887..f45d33d0c12 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -325,6 +325,11 @@ struct hid_item { #define HID_QUIRK_NO_INPUT_SYNC 0x80000000 /* + * HID device groups + */ +#define HID_GROUP_GENERIC 0x0001 + +/* * This is the global environment of the parser. This information is * persistent for main-items. The global environment can be saved and * restored with PUSH/POP statements. |