]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:adis16400: Report correct temperature scale and offset
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:34 +0000 (16:23 +0100)
commitaeea790be8044ed40fbe8d024c6e5d16a24f159f
tree1986bf56aa01a014127dded6b22666b1c8aceb56
parent649c70c48d75da4a12b668be4f27aa566f9f6774
staging:iio:adis16400: Report correct temperature scale and offset

Temperature scale and offset differ between the different devices supported by
this driver. Right now the driver always reports the temperature scale and
offset of the adis16400 regardless of which chip variant is used. This patch
adds two new attributes to the chip_info struct, one for the temperature scale
and one for the temperature offset.

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