iio: Generalize counting direction modes
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 1 Mar 2017 14:45:05 +0000 (15:45 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 5 Mar 2017 11:22:56 +0000 (11:22 +0000)
Move counting direction documentation for 104-quad-8 to sysfs-bus-iio
to avoid duplicated for other incoming drivers

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio
Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8

index 7531d383be8c42de8b8edcb3331191191af1c6a6..8c24d0892f61e36727fdeee50c5bd39313ecc04a 100644 (file)
@@ -1609,3 +1609,17 @@ Description:
                provides an absolute positional reference (e.g. a pulse once per
                revolution) which may be used to home positional systems as
                required.
+
+What:          /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available
+KernelVersion: 4.12
+Contact:       linux-iio@vger.kernel.org
+Description:
+               A list of possible counting directions which are:
+               - "up"  : counter device is increasing.
+               - "down": counter device is decreasing.
+
+What:          /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction
+KernelVersion: 4.12
+Contact:       linux-iio@vger.kernel.org
+Description:
+               Raw counter device counters direction for channel Y.
index 5f4924a9494973255baf59a4f4b385b8e3336535..7fac2c268d9a9050e06d7248bcc33dbdf30978bb 100644 (file)
@@ -1,4 +1,3 @@
-What:          /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available
 What:          /sys/bus/iio/devices/iio:deviceX/in_count_count_mode_available
 What:          /sys/bus/iio/devices/iio:deviceX/in_count_noise_error_available
 What:          /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
@@ -10,13 +9,6 @@ Description:
                Discrete set of available values for the respective counter
                configuration are listed in this file.
 
-What:          /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction
-KernelVersion: 4.10
-Contact:       linux-iio@vger.kernel.org
-Description:
-               Read-only attribute that indicates whether the counter for
-               channel Y is counting up or down.
-
 What:          /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode
 KernelVersion: 4.10
 Contact:       linux-iio@vger.kernel.org