Commit ecb3a7cc authored by Matt Ranostay's avatar Matt Ranostay Committed by Jonathan Cameron

iio: ph: add IIO_PH channel type

Signed-off-by: default avatarMatt Ranostay <mranostay@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 5f9c95d8
...@@ -1493,3 +1493,10 @@ Description: ...@@ -1493,3 +1493,10 @@ Description:
This ABI is especially applicable for humidity sensors This ABI is especially applicable for humidity sensors
to heatup the device and get rid of any condensation to heatup the device and get rid of any condensation
in some humidity environment in some humidity environment
What: /sys/bus/iio/devices/iio:deviceX/in_ph_raw
KernelVersion: 4.5
Contact: linux-iio@vger.kernel.org
Description:
Raw (unscaled no offset etc.) pH reading of a substance as a negative
base-10 logarithm of hydrodium ions in a litre of water.
...@@ -77,6 +77,7 @@ static const char * const iio_chan_type_name_spec[] = { ...@@ -77,6 +77,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_VELOCITY] = "velocity", [IIO_VELOCITY] = "velocity",
[IIO_CONCENTRATION] = "concentration", [IIO_CONCENTRATION] = "concentration",
[IIO_RESISTANCE] = "resistance", [IIO_RESISTANCE] = "resistance",
[IIO_PH] = "ph",
}; };
static const char * const iio_modifier_names[] = { static const char * const iio_modifier_names[] = {
......
...@@ -37,6 +37,7 @@ enum iio_chan_type { ...@@ -37,6 +37,7 @@ enum iio_chan_type {
IIO_VELOCITY, IIO_VELOCITY,
IIO_CONCENTRATION, IIO_CONCENTRATION,
IIO_RESISTANCE, IIO_RESISTANCE,
IIO_PH,
}; };
enum iio_modifier { enum iio_modifier {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment