iio: chemical: Add IIO_CONCENTRATION channel type
authorMatt Ranostay <mranostay@gmail.com>
Mon, 14 Sep 2015 03:26:11 +0000 (20:26 -0700)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Sep 2015 19:23:24 +0000 (20:23 +0100)
commit8ff6b3bc9493089247e012a9fcba7198e194b4a5
treefb399ed1a3165504ee12bf438a5ecf23f45fcaee
parent0df5a5488b6d157eabfdc0747c87c08bd7431a56
iio: chemical: Add IIO_CONCENTRATION channel type

There are air quality sensors that report data back in parts per million
of VOC (Volatile Organic Compounds) which are usually indexed from CO2
or another common pollutant.

This patchset adds an IIO_CONCENTRATION type that returns a percentage
of substance because no other channels types fit this use case.
Modifiers for IIO_MOD_CO2 and IIO_MOD_VOC gas types are defined.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/industrialio-core.c
include/uapi/linux/iio/types.h