OSDN Git Service

iio: imu: adis16480: Treat temperature scale in a generic way
authorStefan Popa <stefan.popa@analog.com>
Wed, 27 Feb 2019 16:14:24 +0000 (18:14 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:42 +0000 (20:19 +0100)
commit6cf7b866bdd5cfbeb401cb65b928ebd46440490d
treef630ebb0e7d3c0b5bf4ccdfa6509f64748ae76e2
parent304840c476ee84ef21f57f284922040ab0d0ce41
iio: imu: adis16480: Treat temperature scale in a generic way

All supported devices provide internal temperature measurement from -40 C
to +85 C, with +25 C representing value 0x00.

This patch treats the temperature scale in a generic way, similar to the
accelerometer and gyroscope scales. So far, there are no temperature max
scale differences between the supported devices. However, devices that
will make use of this feature will be added in the future.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c