HID: sensors: autodetect USB HID sensor hubs
authorAlexander Holler <holler@ahsoftware.de>
Sun, 9 Dec 2012 11:44:30 +0000 (12:44 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 12 Dec 2012 15:49:10 +0000 (16:49 +0100)
commit83499b52c61f50292f0aae36499de8a8fc3e37c3
treee9e64260fc9aa83cfc6c34bc5226c5252b84c68c
parent1a1e8c6fada5f6dc48aa5dad453c9d9ebfdc8218
HID: sensors: autodetect USB HID sensor hubs

It should not be necessary to add IDs for HID sensor hubs to lists in
hid-core.c and hid-sensor-hub.c. So instead of a whitelist, autodetect such USB
HID sensor hubs, based on a collection of type physical inside a useage page of
type sensor. If some sensor hubs stil must be usable as raw devices, a
blacklist might be created.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Acked-by: "Pandruvada, Srinivas" <srinivas.pandruvada@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-sensor-hub.c
include/linux/hid-sensor-ids.h
include/linux/hid.h