]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iio: improve IIO_CONCENTRATION channel type description
authorTomasz Duszynski <tomasz.duszynski@octakon.com>
Mon, 1 Jun 2020 16:15:52 +0000 (18:15 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:53 +0000 (11:49 +0100)
IIO_CONCENTRATION together with INFO_RAW specifier is used for reporting
raw concentrations of pollutants. Raw value should be meaningless
before being properly scaled. Because of that description shouldn't
mention raw value unit whatsoever.

Fix this by rephrasing existing description so it follows conventions
used throughout IIO ABI docs.

Fixes: 8ff6b3bc94930 ("iio: chemical: Add IIO_CONCENTRATION channel type")
Signed-off-by: Tomasz Duszynski <tomasz.duszynski@octakon.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/ABI/testing/sysfs-bus-iio

index d3e53a6d8331bb3894456a15b23a9f505b97cea3..5c62bfb0f3f576017b83059b8840f128073f1f27 100644 (file)
@@ -1569,7 +1569,8 @@ What:             /sys/bus/iio/devices/iio:deviceX/in_concentrationX_voc_raw
 KernelVersion: 4.3
 Contact:       linux-iio@vger.kernel.org
 Description:
-               Raw (unscaled no offset etc.) percentage reading of a substance.
+               Raw (unscaled no offset etc.) reading of a substance. Units
+               after application of scale and offset are percents.
 
 What:          /sys/bus/iio/devices/iio:deviceX/in_resistance_raw
 What:          /sys/bus/iio/devices/iio:deviceX/in_resistanceX_raw