summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-11-20 13:36:00 +0000
committerJonathan Cameron <jic23@kernel.org>2012-11-20 21:26:38 +0000
commitc4f0c6936762ecd6b453275611a785dfdee0d417 (patch)
treedda78d1d4c27ca0144185cc2316556ca1551ed74 /drivers/iio
parent484a0bf091c93c379e6524a17bb037c33c898e01 (diff)
downloadlinux-3.10-c4f0c6936762ecd6b453275611a785dfdee0d417.tar.gz
linux-3.10-c4f0c6936762ecd6b453275611a785dfdee0d417.tar.bz2
linux-3.10-c4f0c6936762ecd6b453275611a785dfdee0d417.zip
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')
-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 060a4045be8..3dccd6c3a88 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[] = {