summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-waltop.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2013-10-26 10:04:09 -0700
committerJiri Kosina <jkosina@suse.cz>2013-10-30 14:24:51 +0100
commitd4b1bba76171cb783e32441b28462fe841073ed8 (patch)
tree31130bbf6888e1a210c9b7ce28b6cf5fa5177042 /drivers/hid/hid-waltop.c
parenta94c79bdc972f7b3d66756043edbd6d04e8486d6 (diff)
downloadtalos-op-linux-d4b1bba76171cb783e32441b28462fe841073ed8.tar.gz
talos-op-linux-d4b1bba76171cb783e32441b28462fe841073ed8.zip
HID: hid-sensor-hub: fix report size
Most of the hid sensor field size is reported in report_size field in the report descriptor. For rotation fusion sensor the quaternion data is 16 byte field, the report size was set to 4 and report count field is set to 4. So the total size is 16 bytes. But the current driver has a bug and not taking account for report count field. This causes user space to see only 4 bytes of data sent via IIO interface. The number of bytes in a field needs to take account of report_count field. Need to multiply report_size and report_count to get total number of bytes. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-waltop.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud