iio: adis16480: Fix scales factors
authorNuno Sá <nuno.sa@analog.com>
Mon, 28 Oct 2019 16:33:48 +0000 (17:33 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 11 Nov 2019 18:38:03 +0000 (18:38 +0000)
commit49549cb23a2926eba70bb634e361daea0f319794
tree7a749a67bd736445dfae157658df4c26a46a9a79
parent731b60afcb3d318581af7f4e1ac9a66f9e12f1a5
iio: adis16480: Fix scales factors

This patch fixes the scales for the gyroscope, accelerometer and
barometer. The pressure scale was just wrong. For the others, the scale
factors were not taking into account that a 32bit word is being read
from the device.

Fixes: 7abad1063deb ("iio: adis16480: Fix scale factors")
Fixes: 82e7a1b25017 ("iio: imu: adis16480: Add support for ADIS1649x family of devices")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c