aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/health
diff options
context:
space:
mode:
authorPeter Meerwald-Stadler <pmeerw@pmeerw.net>2017-10-27 21:45:31 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-12-02 11:15:14 +0000
commitad44a9f804c1591ba2a2ec0ac8d916a515d2790c (patch)
treebdbb3ea52dfa18217ca7d91800dc8808b925077b /drivers/iio/health
parentiio: fix kernel-doc build errors (diff)
downloadlinux-dev-ad44a9f804c1591ba2a2ec0ac8d916a515d2790c.tar.xz
linux-dev-ad44a9f804c1591ba2a2ec0ac8d916a515d2790c.zip
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>
Diffstat (limited to 'drivers/iio/health')
-rw-r--r--drivers/iio/health/max30102.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/health/max30102.c b/drivers/iio/health/max30102.c
index 203ffb9cad6a..147a8c14235f 100644
--- a/drivers/iio/health/max30102.c
+++ b/drivers/iio/health/max30102.c
@@ -371,7 +371,7 @@ static int max30102_read_raw(struct iio_dev *indio_dev,
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;