projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c175cb7
)
iio: health: max30102: Temperature should be in milli Celsius
author
Peter Meerwald-Stadler
<
[email protected]
>
Fri, 27 Oct 2017 19:45:31 +0000
(21:45 +0200)
committer
Jonathan Cameron
<
[email protected]
>
Sat, 2 Dec 2017 11:15:14 +0000
(11:15 +0000)
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 <
[email protected]
>
Acked-by: Matt Ranostay <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Jonathan Cameron <
[email protected]
>
drivers/iio/health/max30102.c
patch
|
blob
|
history
diff --git
a/drivers/iio/health/max30102.c
b/drivers/iio/health/max30102.c
index 203ffb9cad6a2a3a98ac1eaf71951039303099ea..147a8c14235f3f8b39302c8f78beec811f6871dd 100644
(file)
--- 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.062
5 */
+ *val = 1
000; /* 62.
5 */
*val2 = 16;
ret = IIO_VAL_FRACTIONAL;
break;