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

iio: health: max30102: Temperature should be in milli Celsius

As per ABI temperature should be in milli Celsius after scaling,
not Celsius

Note on stable cc. This driver is breaking the standard IIO
ABI. (JC)

Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Peter Meerwald-Stadler and committed by
Jonathan Cameron
ad44a9f8 c175cb7c

+1 -1
+1 -1
drivers/iio/health/max30102.c
··· 371 371 mutex_unlock(&indio_dev->mlock); 372 372 break; 373 373 case IIO_CHAN_INFO_SCALE: 374 - *val = 1; /* 0.0625 */ 374 + *val = 1000; /* 62.5 */ 375 375 *val2 = 16; 376 376 ret = IIO_VAL_FRACTIONAL; 377 377 break;