Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1573896
| From | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] iio: chemical: add particle number concentration channel type |
| Date | 2017-02-05 16:30 +0100 |
| Message-ID | <t7wVk-DW-9@gated-at.bofh.it> (permalink) |
| References | <t7wBY-xf-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> 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?
> Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
> ---
> 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(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
> index 530809ccfacf..481771e585ee 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -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: linux-iio@vger.kernel.org
> +Description:
> + Reading of particulates number in a volume of a mixture.
> + Unit is in 1/m3.
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index d18ded45bedd..451e3bb8d623 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -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[] = {
> diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h
> index ffafd6c25a48..52696e251c4d 100644
> --- a/include/uapi/linux/iio/types.h
> +++ b/include/uapi/linux/iio/types.h
> @@ -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)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/4] iio: chemical: add particle number concentration channel type Tomasz Duszynski <tduszyns@gmail.com> - 2017-02-05 16:10 +0100
Re: [PATCH 1/4] iio: chemical: add particle number concentration channel type Peter Meerwald-Stadler <pmeerw@pmeerw.net> - 2017-02-05 16:30 +0100
Re: [PATCH 1/4] iio: chemical: add particle number concentration channel type Tomasz Duszynski <tduszyns@gmail.com> - 2017-02-05 17:10 +0100
Re: [PATCH 1/4] iio: chemical: add particle number concentration channel type Jonathan Cameron <jic23@kernel.org> - 2017-02-11 11:40 +0100
csiph-web