summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-sensor-hub.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-12-13 22:21:28 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-12-13 22:21:28 +0100
commit1008ebb61e01e3152901b4c5f58bd01a60ed115b (patch)
tree1e7e5b683d732db34a1cb412099fe9b1f5d6ccc1 /drivers/hid/hid-sensor-hub.c
parentMerge tag 'regulator-v3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
parentHID: hid-sensor-hub: fix duplicate sysfs entry error (diff)
downloadlinux-1008ebb61e01e3152901b4c5f58bd01a60ed115b.tar.xz
linux-1008ebb61e01e3152901b4c5f58bd01a60ed115b.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
Pull HID fixes from Jiri Kosina: - Genius Gx Imperator Keyboard regression fix (missing break in case), by Ben Hutchings - duplicate sysfs entry error fix for hid-sensor-hub driver, by Srinivas Pandruvada * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: HID: hid-sensor-hub: fix duplicate sysfs entry error HID: kye: Fix missing break in kye_report_fixup()
Diffstat (limited to 'drivers/hid/hid-sensor-hub.c')
-rw-r--r--drivers/hid/hid-sensor-hub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c
index d87f7cb4bee5..8fab82829f8b 100644
--- a/drivers/hid/hid-sensor-hub.c
+++ b/drivers/hid/hid-sensor-hub.c
@@ -569,6 +569,8 @@ static int sensor_hub_probe(struct hid_device *hdev,
goto err_free_names;
}
sd->hid_sensor_hub_client_devs[
+ sd->hid_sensor_client_cnt].id = PLATFORM_DEVID_AUTO;
+ sd->hid_sensor_hub_client_devs[
sd->hid_sensor_client_cnt].name = name;
sd->hid_sensor_hub_client_devs[
sd->hid_sensor_client_cnt].platform_data =