diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2012-04-23 06:07:03 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-05-01 06:54:54 -0400 |
commit | 734c660931095ae165c0db6ff60558fc4173bfd0 (patch) | |
tree | e56f9e51a034c4fb0c9b89a903b64c41b050d1d3 /include/linux/hid.h | |
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/linux/hid.h')
-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 a0e27ddb887d..f45d33d0c121 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -325,6 +325,11 @@ struct hid_item { | |||
325 | #define HID_QUIRK_NO_INPUT_SYNC 0x80000000 | 325 | #define HID_QUIRK_NO_INPUT_SYNC 0x80000000 |
326 | 326 | ||
327 | /* | 327 | /* |
328 | * HID device groups | ||
329 | */ | ||
330 | #define HID_GROUP_GENERIC 0x0001 | ||
331 | |||
332 | /* | ||
328 | * This is the global environment of the parser. This information is | 333 | * This is the global environment of the parser. This information is |
329 | * persistent for main-items. The global environment can be saved and | 334 | * persistent for main-items. The global environment can be saved and |
330 | * restored with PUSH/POP statements. | 335 | * restored with PUSH/POP statements. |