iio: adis16400: Fix adis16448 gyroscope scale
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 5 Aug 2015 13:38:13 +0000 (15:38 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Aug 2015 11:48:43 +0000 (12:48 +0100)
Use the correct scale for the adis16448 gyroscope output.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/adis16400_core.c

index 2fd68f2219a7d422a604b91ce90138f1050528cd..d42e4fe2c7ed3b61b79b9a6b83d7d06d576e90d1 100644 (file)
@@ -780,7 +780,7 @@ static struct adis16400_chip_info adis16400_chips[] = {
                .flags = ADIS16400_HAS_PROD_ID |
                                ADIS16400_HAS_SERIAL_NUMBER |
                                ADIS16400_BURST_DIAG_STAT,
-               .gyro_scale_micro = IIO_DEGREE_TO_RAD(10000), /* 0.01 deg/s */
+               .gyro_scale_micro = IIO_DEGREE_TO_RAD(40000), /* 0.04 deg/s */
                .accel_scale_micro = IIO_G_TO_M_S_2(833), /* 1/1200 g */
                .temp_scale_nano = 73860000, /* 0.07386 C */
                .temp_offset = 31000000 / 73860, /* 31 C = 0x00 */