diff options
author | Huzefa Kankroliwala <[email protected]> | 2013-04-03 05:45:21 -0700 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2013-04-04 09:59:32 +0200 |
commit | 7c4d577367fb710ea74a56955c5e3546fe5dd7ac (patch) | |
tree | 2e30de664d1f64d122a49b19604916f873f3fcdb /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 83a44ac8bf4a8e6cbbf0c00ff281a482778f708a (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 <[email protected]>
Reviewed-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Huzefa Kankroliwala <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions