]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: fxls8962af: Fix temperature calculation
authorSean Nyekjaer <sean@geanix.com>
Mon, 5 May 2025 19:20:07 +0000 (21:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:37 +0000 (11:07 +0100)
commit22e85e1e6cb4357c8887bf77f70c0fb37062a99f
tree3a63e9861e43f2aaa481d076128ebfbc58273415
parenta27022499d78df2047857693764ceec7147145e7
iio: accel: fxls8962af: Fix temperature calculation

commit 16038474e3a0263572f36326ef85057aaf341814 upstream.

According to spec temperature should be returned in milli degrees Celsius.
Add in_temp_scale to calculate from Celsius to milli Celsius.

Fixes: a3e0b51884ee ("iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers")
Cc: stable@vger.kernel.org
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Link: https://patch.msgid.link/20250505-fxls-v4-1-a38652e21738@geanix.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/fxls8962af-core.c