]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:07:10 +0000 (20:07 +0100)
commitf4fe532c3db9519fe68a65b430b9020c6ba40b85
tree46880f957177835775a0bd0f650c5c328f07e984
parent324d96d014b3b60cd54c7dd1455f9df45ec49f74
iio: imu: inv_mpu6050: fix temperature reporting using bad unit

commit 53eaa9c27fdc01b4f4d885223e29f97393409e7e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h