diff options
| author | Narcisa Ana Maria Vasile <[email protected]> | 2017-12-06 18:57:58 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-01-08 16:03:44 +0100 |
| commit | 8f114acd4e1a9cfa05b70bcc4219bc88197b5c9b (patch) | |
| tree | 9f8cde7d411bd249c0fdbb0b0c27c442cc1b9346 /tools/perf/scripts/python | |
| parent | 9bf94f836e32ea168ec7448a523c11480317ad79 (diff) | |
iio: chemical: ccs811: Fix output of IIO_CONCENTRATION channels
in_concentration_raw should report, according to sysfs-bus-iio documentation,
a "Raw (unscaled no offset etc.) percentage reading of a substance."
Modify scale to convert from ppm/ppb to percentage:
1 ppm = 0.0001%
1 ppb = 0.0000001%
There is no offset needed to convert the ppm/ppb to percentage,
so remove offset from IIO_CONCENTRATION (IIO_MOD_CO2) channel.
Cc'd stable to reduce chance of userspace breakage in the long
run as we fix this wrong bit of ABI usage.
Signed-off-by: Narcisa Ana Maria Vasile <[email protected]>
Cc: <[email protected]>
Reviewed-by: Matt Ranostay <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions