Skip to content

Commit

Permalink
iio: imu: adis16480: Fix acceleration scale factor for adis16480
Browse files Browse the repository at this point in the history
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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Dragos Bogdan authored and Jonathan Cameron committed Aug 20, 2017
1 parent f00fd7a commit fdd0d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/imu/adis16480.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ static const struct adis16480_chip_info adis16480_chip_info[] = {
.gyro_max_val = IIO_RAD_TO_DEGREE(22500),
.gyro_max_scale = 450,
.accel_max_val = IIO_M_S_2_TO_G(12500),
.accel_max_scale = 5,
.accel_max_scale = 10,
},
[ADIS16485] = {
.channels = adis16485_channels,
Expand Down

0 comments on commit fdd0d32

Please sign in to comment.