Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: ph: add IIO_PH channel type

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Matt Ranostay and committed by
Jonathan Cameron
ecb3a7cc 5f9c95d8

+9
+7
Documentation/ABI/testing/sysfs-bus-iio
··· 1493 1493 This ABI is especially applicable for humidity sensors 1494 1494 to heatup the device and get rid of any condensation 1495 1495 in some humidity environment 1496 + 1497 + What: /sys/bus/iio/devices/iio:deviceX/in_ph_raw 1498 + KernelVersion: 4.5 1499 + Contact: linux-iio@vger.kernel.org 1500 + Description: 1501 + Raw (unscaled no offset etc.) pH reading of a substance as a negative 1502 + base-10 logarithm of hydrodium ions in a litre of water.
+1
drivers/iio/industrialio-core.c
··· 77 77 [IIO_VELOCITY] = "velocity", 78 78 [IIO_CONCENTRATION] = "concentration", 79 79 [IIO_RESISTANCE] = "resistance", 80 + [IIO_PH] = "ph", 80 81 }; 81 82 82 83 static const char * const iio_modifier_names[] = {
+1
include/uapi/linux/iio/types.h
··· 37 37 IIO_VELOCITY, 38 38 IIO_CONCENTRATION, 39 39 IIO_RESISTANCE, 40 + IIO_PH, 40 41 }; 41 42 42 43 enum iio_modifier {