aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHuzefa Kankroliwala2013-04-03 05:45:21 -0700
committerJiri Kosina2013-04-04 09:59:32 +0200
commit7c4d577367fb710ea74a56955c5e3546fe5dd7ac (patch)
tree2e30de664d1f64d122a49b19604916f873f3fcdb /include
parent83a44ac8bf4a8e6cbbf0c00ff281a482778f708a (diff)
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 'include')
0 files changed, 0 insertions, 0 deletions