Patch "iio: health: max30102: Temperature should be in milli Celsius" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iio: health: max30102: Temperature should be in milli Celsius
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iio-health-max30102-temperature-should-be-in-milli-celsius.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
ad44a9f804c1591ba2a2ec0ac8d916a515d2790cMon Sep 17 00:00:00 2001
From: Peter Meerwald-Stadler <[email protected]>
Date: Fri, 27 Oct 2017 21:45:31 +0200
Subject: iio: health: max30102: Temperature should be in milli Celsius
From: Peter Meerwald-Stadler <[email protected]>
commit ad44a9f804c1591ba2a2ec0ac8d916a515d2790c upstream.
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)
--- drivers/iio/health/max30102.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/health/max30102.c +1 -1
@@ -371,7 +371,7 @@ static int max30102_read_raw(struct iio_mutex_unlock (&indio_dev->mlock);break ;case IIO_CHAN_INFO_SCALE : - *val =1 ;/* 0.0625 */ + *val =1000 ;/* 62.5 */ *val2 =16 ; ret =IIO_VAL_FRACTIONAL ;break ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/iio-health-max30102-temperature-should-be-in-milli-celsius.patch