]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: imu: inv_icm45600: fix temperature offset reporting
authorJean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Thu, 18 Dec 2025 10:30:59 +0000 (11:30 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 18:40:56 +0000 (18:40 +0000)
commit943cbf906956a6c081636bec2458a31dbe482170
tree3367adca11925db18120d5116c16c0174c6065f4
parentea6b4feba85e996e840e0b661bc42793df6eb701
iio: imu: inv_icm45600: fix temperature offset reporting

Correct temperature computation is (raw + offset) * scale and not
apply scale and offset afterward.
Fix temperature offset reporting to the correct value and update
commentaries for the new computation.

Fixes: 27e072bc34d1 ("iio: imu: inv_icm45600: add IMU IIO gyroscope device")
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_icm45600/inv_icm45600_core.c