HID: input: don't register unmapped input devices
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 22 Mar 2013 17:38:28 +0000 (18:38 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 27 Mar 2013 13:02:45 +0000 (14:02 +0100)
commit4f22decf9b6329acfe59091c5cba6b378b9b31db
treefddbec2a0158f8d93cfe6fc886d459b3c2f81664
parentb3fecf8cab6441527ab057c99d7e6a6d7f6713e5
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>
drivers/hid/hid-input.c
include/linux/hid.h