summaryrefslogtreecommitdiff
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-11-20 17:36:00 +0400
committerJonathan Cameron <jic23@kernel.org>2012-11-21 01:26:38 +0400
commitc4f0c6936762ecd6b453275611a785dfdee0d417 (patch)
treedda78d1d4c27ca0144185cc2316556ca1551ed74 /drivers/iio/industrialio-core.c
parent484a0bf091c93c379e6524a17bb037c33c898e01 (diff)
downloadlinux-c4f0c6936762ecd6b453275611a785dfdee0d417.tar.xz
iio: Add pressure channel type
This patch adds support for a new IIO channel type for pressure measurements. This can for example be used for barometric pressure sensors. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r--drivers/iio/industrialio-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 060a4045be85..3dccd6c3a889 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -65,6 +65,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_CAPACITANCE] = "capacitance",
[IIO_ALTVOLTAGE] = "altvoltage",
[IIO_CCT] = "cct",
+ [IIO_PRESSURE] = "pressure",
};
static const char * const iio_modifier_names[] = {