aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2013-02-11 05:31:19 -0500
committerJiri Kosina <jkosina@suse.cz>2013-02-18 04:26:59 -0500
commit0d1e4b024f5eff6f3a8927ddfbf6a1a9d6db1a31 (patch)
tree3375d1b1ee4c18771edb2b34da77c7d56473cf94 /drivers
parent9ef0c5ff0cbdb4eb1f10351091154f3a85b8e9b7 (diff)
HID: sensor-hub: don't limit the driver only to USB bus
We now have two transport mediums: USB and I2C, where sensor hubs can exists. So instead of constraining the driver to only these two we let it to match any HID bus as long as the group is HID_GROUP_SENSOR_HUB. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hid/hid-sensor-hub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c
index 3c55b3d4a0d1..7d96db367477 100644
--- a/drivers/hid/hid-sensor-hub.c
+++ b/drivers/hid/hid-sensor-hub.c
@@ -605,7 +605,8 @@ static void sensor_hub_remove(struct hid_device *hdev)
605} 605}
606 606
607static const struct hid_device_id sensor_hub_devices[] = { 607static const struct hid_device_id sensor_hub_devices[] = {
608 { HID_DEVICE(BUS_USB, HID_GROUP_SENSOR_HUB, HID_ANY_ID, HID_ANY_ID) }, 608 { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, HID_ANY_ID,
609 HID_ANY_ID) },
609 { } 610 { }
610}; 611};
611MODULE_DEVICE_TABLE(hid, sensor_hub_devices); 612MODULE_DEVICE_TABLE(hid, sensor_hub_devices);