summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorSong Hongyan <hongyan.song@intel.com>2016-10-25 01:30:07 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-18 10:48:35 +0100
commitcaff14e99c63b79cff95ff21474b13a22db7d8ed (patch)
treebf2e2bf80daea989abddb7a7c88e6d3647897241 /scripts/objdiff
parentdbbc5e6bcf3675db6305a0130915134d0011f37c (diff)
iio: hid-sensors: Increase the precision of scale to fix wrong reading interpretation.
commit 6f77199e9e4b84340c751c585691d7642a47d226 upstream. While testing, it was observed that on some platforms the scale value from iio sysfs for gyroscope is always 0 (E.g. Yoga 260). This results in the final angular velocity component values to be zeros. This is caused by insufficient precision of scale value displayed in sysfs. If the precision is changed to nano from current micro, then this is sufficient to display the scale value on this platform. Since this can be a problem for all other HID sensors, increase scale precision of all HID sensors to nano from current micro. Results on Yoga 260: name scale before scale now -------------------------------------------- gyro_3d 0.000000 0.000000174 als 0.001000 0.001000000 magn_3d 0.000001 0.000001000 accel_3d 0.000009 0.000009806 Signed-off-by: Song Hongyan <hongyan.song@intel.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions