OSDN Git Service

HID: Do not create input devices for feature reports
authorHenrik Rydberg <rydberg@euromail.se>
Thu, 24 Feb 2011 18:30:59 +0000 (19:30 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 22 Apr 2011 12:03:44 +0000 (20:03 +0800)
commitaa2b689897d457212af830de5cda5ff9a35a4b7e
treed0155bbdd1122acc5af4c59fca2c661a4097b12c
parent4a75c99d440c9038cc0ee49a866000b2e8a71b49
HID: Do not create input devices for feature reports

commit f635bd11c8d332d917fb9a4cad3071b2357d5b2a upstream.

When the multi input quirk is set, there is a new input device
created for every feature report. Since the idea is to present
features per hid device, not per input device, revert back to
the original report loop and change the feature_mapping() callback
to not take the input device as argument.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Tested-by: Benjamin Tissoires <benjmain.tissoires@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hid/hid-input.c
drivers/hid/hid-multitouch.c
include/linux/hid.h