diff options
author | Matt Ranostay <mranostay@gmail.com> | 2016-05-25 00:29:19 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-29 15:03:21 -0400 |
commit | 4b9d2090a444d44f16788b9ad60180011d133f97 (patch) | |
tree | 60654495441e71bacd5819ed5f0ecc53c9c3115f | |
parent | 7103b99b031cb0ff6979331757bfc4893f37ae9e (diff) |
iio: electricalconductivity: add IIO_ELECTRICALCONDUCTIVITY type
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | Documentation/ABI/testing/sysfs-bus-iio | 7 | ||||
-rw-r--r-- | drivers/iio/industrialio-core.c | 1 | ||||
-rw-r--r-- | include/uapi/linux/iio/types.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index df44998e7506..e7f590c6ef8e 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio | |||
@@ -1565,3 +1565,10 @@ Description: | |||
1565 | * X is in the plane of the propellers, perpendicular to Y axis, | 1565 | * X is in the plane of the propellers, perpendicular to Y axis, |
1566 | and positive towards the starboard side of the UAV ; | 1566 | and positive towards the starboard side of the UAV ; |
1567 | * Z is perpendicular to propellers plane and positive upwards. | 1567 | * Z is perpendicular to propellers plane and positive upwards. |
1568 | |||
1569 | What: /sys/bus/iio/devices/iio:deviceX/in_electricalconductivity_raw | ||
1570 | KernelVersion: 4.8 | ||
1571 | Contact: linux-iio@vger.kernel.org | ||
1572 | Description: | ||
1573 | Raw (unscaled no offset etc.) electric conductivity reading that | ||
1574 | can be processed to siemens per meter. | ||
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index e6319a9346b2..2a85bd888619 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c | |||
@@ -80,6 +80,7 @@ static const char * const iio_chan_type_name_spec[] = { | |||
80 | [IIO_RESISTANCE] = "resistance", | 80 | [IIO_RESISTANCE] = "resistance", |
81 | [IIO_PH] = "ph", | 81 | [IIO_PH] = "ph", |
82 | [IIO_UVINDEX] = "uvindex", | 82 | [IIO_UVINDEX] = "uvindex", |
83 | [IIO_ELECTRICALCONDUCTIVITY] = "electricalconductivity", | ||
83 | }; | 84 | }; |
84 | 85 | ||
85 | static const char * const iio_modifier_names[] = { | 86 | static const char * const iio_modifier_names[] = { |
diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h index b0916fc72cce..22e5e589a274 100644 --- a/include/uapi/linux/iio/types.h +++ b/include/uapi/linux/iio/types.h | |||
@@ -39,6 +39,7 @@ enum iio_chan_type { | |||
39 | IIO_RESISTANCE, | 39 | IIO_RESISTANCE, |
40 | IIO_PH, | 40 | IIO_PH, |
41 | IIO_UVINDEX, | 41 | IIO_UVINDEX, |
42 | IIO_ELECTRICALCONDUCTIVITY, | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | enum iio_modifier { | 45 | enum iio_modifier { |