]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio: Fix adis16400 channel offsets and scales
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 15 Oct 2012 09:35:00 +0000 (10:35 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 19 Oct 2012 15:23:33 +0000 (16:23 +0100)
commit041bc34b29b3a1f4c4ed3cb17a4d4aed906796d3
treea9a37f7494c625f6061b047551f2f10514845800
parent3ea735e44e6eaf38bc66ef8393e558fac8dea996
staging:iio: Fix adis16400 channel offsets and scales

Most of the channel offsets and scales in the adis16400 are incorrect:
    * Voltage scale is off by a factor of 1000
    * Temperature scale is off by a factor of 1000
* Temperature offset is completely wrong
* Some of the acceleration scales are either completely wrong or have the
  wrong unit
* Some of the angular velocity scale are either completely wrong or have
  the wrong unit

This patch fixes these issues. For consistency it also converts scales which are
correct to use the IIO_G_TO_M_S_2 and IIO_DEGREE_TO_RAD macro. This makes it
much easier to compare it to the value given in the datasheet.

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