Skip to content

Commit 521dbeb

Browse files
Benjamin-Gaignardjic23
authored andcommitted
iio: Generalize counting direction modes
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>
1 parent 59d0f2d commit 521dbeb

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎Documentation/ABI/testing/sysfs-bus-iio‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,3 +1609,17 @@ Description:
16091609
provides an absolute positional reference (e.g. a pulse once per
16101610
revolution) which may be used to home positional systems as
16111611
required.
1612+
1613+
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available
1614+
KernelVersion: 4.12
1615+
Contact: linux-iio@vger.kernel.org
1616+
Description:
1617+
A list of possible counting directions which are:
1618+
- "up" : counter device is increasing.
1619+
- "down": counter device is decreasing.
1620+
1621+
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction
1622+
KernelVersion: 4.12
1623+
Contact: linux-iio@vger.kernel.org
1624+
Description:
1625+
Raw counter device counters direction for channel Y.

‎Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available
21
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_mode_available
32
What: /sys/bus/iio/devices/iio:deviceX/in_count_noise_error_available
43
What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
@@ -10,13 +9,6 @@ Description:
109
Discrete set of available values for the respective counter
1110
configuration are listed in this file.
1211

13-
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction
14-
KernelVersion: 4.10
15-
Contact: linux-iio@vger.kernel.org
16-
Description:
17-
Read-only attribute that indicates whether the counter for
18-
channel Y is counting up or down.
19-
2012
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode
2113
KernelVersion: 4.10
2214
Contact: linux-iio@vger.kernel.org

0 commit comments

Comments
 (0)