iio: imu: inv_mpu6050: fix temperature reporting using bad unit
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Tue, 26 Nov 2019 16:19:12 +0000 (17:19 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Dec 2019 18:10:30 +0000 (18:10 +0000)
commit53eaa9c27fdc01b4f4d885223e29f97393409e7e
tree8418a0b65982aed7f1810914c627088aa86a541a
parent342a6928bd5017edbdae376042d8ad6af3d3b943
iio: imu: inv_mpu6050: fix temperature reporting using bad unit

Temperature should be reported in milli-degrees, not degrees. Fix
scale and offset values to use the correct unit.

This is a fix for an issue that has been present for a long time.
The fixes tag reflects the point at which the code last changed in a
fashion that would make this fix patch no longer apply.  Backports
will be necessary to fix those elements that predate that patch.

Fixes: 1615fe41a195 ("iio: imu: mpu6050: Fix FIFO layout for ICM20602")
Cc: stable@vger.kernel.org
Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h