Skip to content
Commit 7c4d5773 authored by Huzefa Kankroliwala's avatar Huzefa Kankroliwala Committed by Jiri Kosina
Browse files

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: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarHuzefa Kankroliwala <huzefa.nomanx.kankroliwala@intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 83a44ac8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment