Skip to content

Commit d2c072c

Browse files
dbogdangregkh
authored andcommitted
iio: imu: adis16480: Fix acceleration scale factor for adis16480
commit fdd0d32eb95f135041236a6885d9006315aa9a1d upstream. According to the datasheet, the range of the acceleration is [-10 g, + 10 g], so the scale factor should be 10 instead of 5. Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9dac44d commit d2c072c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iio/imu/adis16480.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ static const struct adis16480_chip_info adis16480_chip_info[] = {
696696
.gyro_max_val = IIO_RAD_TO_DEGREE(22500),
697697
.gyro_max_scale = 450,
698698
.accel_max_val = IIO_M_S_2_TO_G(12500),
699-
.accel_max_scale = 5,
699+
.accel_max_scale = 10,
700700
},
701701
[ADIS16485] = {
702702
.channels = adis16485_channels,

0 commit comments

Comments
 (0)