Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: mlx96014: Replace offset sign

Changed the offset to negative as usual equation is: (raw +
offset)*scale and in this
case offset should be negative (as we deduct 273.15 Kelvin to get temperature
in Celsius).

Signed-off-by: Crt Mori <cmo@melexis.com>
Acked-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Crt Mori and committed by
Jonathan Cameron
c68a67b7 354c879d

+1 -1
+1 -1
drivers/iio/temperature/mlx90614.c
··· 204 204 *val = ret; 205 205 return IIO_VAL_INT; 206 206 case IIO_CHAN_INFO_OFFSET: 207 - *val = 13657; 207 + *val = -13657; 208 208 *val2 = 500000; 209 209 return IIO_VAL_INT_PLUS_MICRO; 210 210 case IIO_CHAN_INFO_SCALE: