Commit c2746a1e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

docs: gpio: add sysfs interface to the admin-guide



While this is stated as obsoleted, the sysfs interface described
there is still valid, and belongs to the admin-guide.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4c68060b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ Description:
  Kernel code may export it for complete or partial access.

  GPIOs are identified as they are inside the kernel, using integers in
  the range 0..INT_MAX.  See Documentation/gpio for more information.
  the range 0..INT_MAX.  See Documentation/admin-guide/gpio for more information.

    /sys/class/gpio
	/export ... asks the kernel to export a GPIO to userspace
+1 −1
Original line number Diff line number Diff line
:orphan:
.. SPDX-License-Identifier: GPL-2.0

====
gpio
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ configure specific aspects of kernel behavior to your liking.
   cputopology
   device-mapper/index
   efi-stub
   gpio/index
   highuid
   hw_random
   iostats
+1 −1
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ specifies the path to the controller. In order to use these GPIOs in Linux
we need to translate them to the corresponding Linux GPIO descriptors.

There is a standard GPIO API for that and is documented in
Documentation/gpio/.
Documentation/admin-guide/gpio/.

In the above example we can get the corresponding two GPIO descriptors with
a code like this::
Loading