Skip to contentSkip to conversation

iio: improve IIO_CONCENTRATION channel type description

PATCH In review Tomasz Duszynski 3 participants 3 messages Jun 1, 2020 – Jun 6, 2020 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: improve IIO_CONCENTRATION channel type description

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")
---
 Documentation/ABI/testing/sysfs-bus-iio | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-bus-iio +2 -1
index d3e53a6d8331..5c62bfb0f3f5 100644
@@ -1569,7 +1569,8 @@ What:		/sys/bus/iio/devices/iio:deviceX/in_concentrationX_voc_raw
 KernelVersion:	4.3
 Contact:	[email protected]
 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
Signature · 1 line
2.26.2
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Tomasz Duszynski

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.

Quoted 24 lines
Fixes 8ff6b3bc94930 ("iio: chemical: Add IIO_CONCENTRATION channel type")
---
 Documentation/ABI/testing/sysfs-bus-iio | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-bus-iio +2 -2
index d3e53a6d8331..5c62bfb0f3f5 100644
@@ -1569,7 +1569,8 @@ What:             /sys/bus/iio/devices/iio:deviceX/in_concentrationX_voc_raw
 KernelVersion: 4.3
 Contact:       [email protected]
 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
--

2.26.2

maintainer
#2 lore raw
Quoted 8 lines · On Mon, 1 Jun 2020 14:19:43 -0700 Matt Ranostay <[email protected]>…
Quoted 6 lines · Tomasz Duszynski

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.

Quoted 4 lines
Quoted 2 lines

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

Thanks for tidying that up.

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to ignore.

Thanks,

Jonathan

Quoted 25 lines
Quoted 25 lines
Fixes 8ff6b3bc94930 ("iio: chemical: Add IIO_CONCENTRATION channel type")
---
 Documentation/ABI/testing/sysfs-bus-iio | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-bus-iio +2 -2
index d3e53a6d8331..5c62bfb0f3f5 100644
@@ -1569,7 +1569,8 @@ What:             /sys/bus/iio/devices/iio:deviceX/in_concentrationX_voc_raw
 KernelVersion: 4.3
 Contact:       [email protected]
 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
--

2.26.2