]> 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)
commita87599e9b9acec2211932745417d795eb7a3cedc
tree1986bf56aa01a014127dded6b22666b1c8aceb56
parent041bc34b29b3a1f4c4ed3cb17a4d4aed906796d3
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