Skip to contentSkip to conversation

iio: chemical: add particle number concentration channel type

PATCH In review Tomasz Duszynski 3 participants 4 messages Feb 5, 2017 – Feb 11, 2017 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 iio: chemical: add particle number concentration channel type

This patch adds channel type for expressing particle number concentration.

---
 Documentation/ABI/testing/sysfs-bus-iio | 7 +++++++
 drivers/iio/industrialio-core.c         | 1 +
 include/uapi/linux/iio/types.h          | 1 +
 3 files changed, 9 insertions(+)
Documentation/ABI/testing/sysfs-bus-iio +7 -0
index 530809ccfacf..481771e585ee 100644
@@ -1608,3 +1608,10 @@ Description:
 		provides an absolute positional reference (e.g. a pulse once per
 		revolution) which may be used to home positional systems as
 		required.
+
+What:		/sys/bus/iio/devices/iio:deviceX/in_numberconcentration_input
+KernelVersion: 	4.12
+Contact:	[email protected]
+Description:
+		Reading of particulates number in a volume of a mixture.
+		Unit is in 1/m3.
drivers/iio/industrialio-core.c +1 -0
index d18ded45bedd..451e3bb8d623 100644
@@ -85,6 +85,7 @@ static const char * const iio_chan_type_name_spec[] = {
 	[IIO_COUNT] = "count",
 	[IIO_INDEX] = "index",
 	[IIO_GRAVITY]  = "gravity",
+	[IIO_NUMBERCONCENTRATION] = "numberconcentration",
 };
 
 static const char * const iio_modifier_names[] = {
include/uapi/linux/iio/types.h +1 -0
index ffafd6c25a48..52696e251c4d 100644
@@ -43,6 +43,7 @@ enum iio_chan_type {
 	IIO_COUNT,
 	IIO_INDEX,
 	IIO_GRAVITY,
+	IIO_NUMBERCONCENTRATION,
 };
 
 enum iio_modifier {
Signature · 1 line
2.11.1
#1 lore raw
Quoted 3 lines

This patch adds channel type for expressing particle number concentration.

numberconcentration sound a bit strange to be, more like a number theoretic concept

how about particlecontentration? or numberparticles?

Quoted 47 lines
---
 Documentation/ABI/testing/sysfs-bus-iio | 7 +++++++
 drivers/iio/industrialio-core.c         | 1 +
 include/uapi/linux/iio/types.h          | 1 +
 3 files changed, 9 insertions(+)
Documentation/ABI/testing/sysfs-bus-iio +7 -0
index 530809ccfacf..481771e585ee 100644
@@ -1608,3 +1608,10 @@ Description:
 		provides an absolute positional reference (e.g. a pulse once per
 		revolution) which may be used to home positional systems as
 		required.
+
+What:		/sys/bus/iio/devices/iio:deviceX/in_numberconcentration_input
+KernelVersion: 	4.12
+Contact:	[email protected]
+Description:
+		Reading of particulates number in a volume of a mixture.
+		Unit is in 1/m3.
drivers/iio/industrialio-core.c +1 -0
index d18ded45bedd..451e3bb8d623 100644
@@ -85,6 +85,7 @@ static const char * const iio_chan_type_name_spec[] = {
 	[IIO_COUNT] = "count",
 	[IIO_INDEX] = "index",
 	[IIO_GRAVITY]  = "gravity",
+	[IIO_NUMBERCONCENTRATION] = "numberconcentration",
 };
 
 static const char * const iio_modifier_names[] = {
include/uapi/linux/iio/types.h +1 -0
index ffafd6c25a48..52696e251c4d 100644
@@ -43,6 +43,7 @@ enum iio_chan_type {
 	IIO_COUNT,
 	IIO_INDEX,
 	IIO_GRAVITY,
+	IIO_NUMBERCONCENTRATION,
 };
 
 enum iio_modifier {
Signature · 2 lines
Peter Meerwald-Stadler
+43-664-2444418 (mobile)
#2 lore raw
Quoted 9 lines · Peter Meerwald-Stadler
Quoted 3 lines

This patch adds channel type for expressing particle number concentration.

numberconcentration sound a bit strange to be, more like a number theoretic concept

how about particlecontentration? or numberparticles?

Agree it may sound a bit strange but in fact it is a formal physical quantity with SI unit. Perhaps I can leave it as is to stay consistent with science world?

Quoted 52 lines
Quoted 40 lines
---
 Documentation/ABI/testing/sysfs-bus-iio | 7 +++++++
 drivers/iio/industrialio-core.c         | 1 +
 include/uapi/linux/iio/types.h          | 1 +
 3 files changed, 9 insertions(+)
Documentation/ABI/testing/sysfs-bus-iio +7 -0
index 530809ccfacf..481771e585ee 100644
@@ -1608,3 +1608,10 @@ Description:
 		provides an absolute positional reference (e.g. a pulse once per
 		revolution) which may be used to home positional systems as
 		required.
+
+What:		/sys/bus/iio/devices/iio:deviceX/in_numberconcentration_input
+KernelVersion: 	4.12
+Contact:	[email protected]
+Description:
+		Reading of particulates number in a volume of a mixture.
+		Unit is in 1/m3.
drivers/iio/industrialio-core.c +1 -0
index d18ded45bedd..451e3bb8d623 100644
@@ -85,6 +85,7 @@ static const char * const iio_chan_type_name_spec[] = {
 	[IIO_COUNT] = "count",
 	[IIO_INDEX] = "index",
 	[IIO_GRAVITY]  = "gravity",
+	[IIO_NUMBERCONCENTRATION] = "numberconcentration",
 };
 
 static const char * const iio_modifier_names[] = {
include/uapi/linux/iio/types.h +0 -0
index ffafd6c25a48..52696e251c4d 100644

include/uapi/linux/iio/types.h enum iio_chan_type { · line 49

Quoted 7 lines
include/uapi/linux/iio/types.h +1 -0
@@ -43,6 +43,7 @@ enum iio_chan_type {
 	IIO_COUNT,
 	IIO_INDEX,
 	IIO_GRAVITY,
+	IIO_NUMBERCONCENTRATION,
 };
 
 enum iio_modifier {

--

Peter Meerwald-Stadler
+43-664-2444418 (mobile)

maintainer
#3 lore raw
Quoted 5 lines · Tomasz Duszynski
Quoted 4 lines · Peter Meerwald-Stadler
Quoted 3 lines

This patch adds channel type for expressing particle number concentration.

Quoted 8 lines
Quoted 5 lines

numberconcentration sound a bit strange to be, more like a number theoretic concept

how about particlecontentration? or numberparticles?

Agree it may sound a bit strange but in fact it is a formal physical quantity with SI unit. Perhaps I can leave it as is to stay consistent with science world?

Wikipedia seems to suggest that there are several choices, but this is a common one in Chemistry so fair enough.

Jonathan

Quoted 52 lines
Quoted 52 lines
Quoted 40 lines
---
 Documentation/ABI/testing/sysfs-bus-iio | 7 +++++++
 drivers/iio/industrialio-core.c         | 1 +
 include/uapi/linux/iio/types.h          | 1 +
 3 files changed, 9 insertions(+)
Documentation/ABI/testing/sysfs-bus-iio +7 -0
index 530809ccfacf..481771e585ee 100644
@@ -1608,3 +1608,10 @@ Description:
 		provides an absolute positional reference (e.g. a pulse once per
 		revolution) which may be used to home positional systems as
 		required.
+
+What:		/sys/bus/iio/devices/iio:deviceX/in_numberconcentration_input
+KernelVersion: 	4.12
+Contact:	[email protected]
+Description:
+		Reading of particulates number in a volume of a mixture.
+		Unit is in 1/m3.
drivers/iio/industrialio-core.c +1 -0
index d18ded45bedd..451e3bb8d623 100644
@@ -85,6 +85,7 @@ static const char * const iio_chan_type_name_spec[] = {
 	[IIO_COUNT] = "count",
 	[IIO_INDEX] = "index",
 	[IIO_GRAVITY]  = "gravity",
+	[IIO_NUMBERCONCENTRATION] = "numberconcentration",
 };
 
 static const char * const iio_modifier_names[] = {
include/uapi/linux/iio/types.h +0 -0
index ffafd6c25a48..52696e251c4d 100644

include/uapi/linux/iio/types.h enum iio_chan_type { · line 49

Quoted 7 lines
include/uapi/linux/iio/types.h +1 -0
@@ -43,6 +43,7 @@ enum iio_chan_type {
 	IIO_COUNT,
 	IIO_INDEX,
 	IIO_GRAVITY,
+	IIO_NUMBERCONCENTRATION,
 };
 
 enum iio_modifier {

--

Peter Meerwald-Stadler
+43-664-2444418 (mobile)