diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2013-03-22 18:38:28 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-27 14:02:45 +0100 |
commit | 4f22decf9b6329acfe59091c5cba6b378b9b31db (patch) | |
tree | fddbec2a0158f8d93cfe6fc886d459b3c2f81664 /include/linux/hid.h | |
parent | b3fecf8cab6441527ab057c99d7e6a6d7f6713e5 (diff) | |
download | lwn-4f22decf9b6329acfe59091c5cba6b378b9b31db.tar.gz lwn-4f22decf9b6329acfe59091c5cba6b378b9b31db.zip |
HID: input: don't register unmapped input devices
There is no need to register an input device containing no events.
This allows drivers using the quirk MULTI_INPUT to register one input
per report effectively used.
For backward compatibility, we need to add a quirk to request
this behavior.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 863744c38ddc..fffa06bc4880 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -282,6 +282,7 @@ struct hid_item { #define HID_QUIRK_BADPAD 0x00000020 #define HID_QUIRK_MULTI_INPUT 0x00000040 #define HID_QUIRK_HIDINPUT_FORCE 0x00000080 +#define HID_QUIRK_NO_EMPTY_INPUT 0x00000100 #define HID_QUIRK_SKIP_OUTPUT_REPORTS 0x00010000 #define HID_QUIRK_FULLSPEED_INTERVAL 0x10000000 #define HID_QUIRK_NO_INIT_REPORTS 0x20000000 |