diff options
author | Huzefa Kankroliwala <huzefa.nomanx.kankroliwala@intel.com> | 2013-04-03 12:45:21 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-04-04 07:59:32 (GMT) |
commit | 7c4d577367fb710ea74a56955c5e3546fe5dd7ac (patch) | |
tree | 2e30de664d1f64d122a49b19604916f873f3fcdb /drivers/usb/serial/ipw.c | |
parent | 83a44ac8bf4a8e6cbbf0c00ff281a482778f708a (diff) | |
download | linux-7c4d577367fb710ea74a56955c5e3546fe5dd7ac.tar.xz |
HID: i2c-hid: fix length for set/get report in i2c hid
With the current i2c hid driver set/get report does not work
as expected, for e.g sensor hub properties like power state,
frequency etc is not set properly on the device as a result
we do not get events.
The problem is that i2c hid driver in function i2c_hid_request
sets length equal to default buffer size for which the sensor
hub does not respond on get/set commands. Use report length
and calculate it based on report size and id.
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Huzefa Kankroliwala <huzefa.nomanx.kankroliwala@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/usb/serial/ipw.c')
0 files changed, 0 insertions, 0 deletions