summaryrefslogtreecommitdiff
path: root/Documentation/driver-api/gpio/drivers-on-gpio.rst
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-01-08 01:17:12 +0100
committerLinus Walleij <linus.walleij@linaro.org>2020-01-15 11:11:43 +0100
commitddb4e53fc72ec907f99199749cb4c71af4794607 (patch)
tree290b0f050977a3023fe1c4a85c53858e061bbe5a /Documentation/driver-api/gpio/drivers-on-gpio.rst
parentb0d126e1d64e76f165dc9ce6a4b02497c48053fb (diff)
gpio: Add use guidance documentation
The text in this new document is a response to recurring questions about the GPIO in-kernel API vs the userspace ABI. When do you use one or the other? It can be a bit intuitive, but I tried to sum it all up. Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Link: https://lore.kernel.org/r/20200108001712.47500-1-linus.walleij@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/driver-api/gpio/drivers-on-gpio.rst')
-rw-r--r--Documentation/driver-api/gpio/drivers-on-gpio.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/driver-api/gpio/drivers-on-gpio.rst b/Documentation/driver-api/gpio/drivers-on-gpio.rst
index f3a189320e11..820b403d50f6 100644
--- a/Documentation/driver-api/gpio/drivers-on-gpio.rst
+++ b/Documentation/driver-api/gpio/drivers-on-gpio.rst
@@ -95,7 +95,7 @@ to emulate MCTRL (modem control) signals CTS/RTS by using two GPIO lines. The
MTD NOR flash has add-ons for extra GPIO lines too, though the address bus is
usually connected directly to the flash.
-Use those instead of talking directly to the GPIOs using sysfs; they integrate
-with kernel frameworks better than your userspace code could. Needless to say,
-just using the appropriate kernel drivers will simplify and speed up your
-embedded hacking in particular by providing ready-made components.
+Use those instead of talking directly to the GPIOs from userspace; they
+integrate with kernel frameworks better than your userspace code could.
+Needless to say, just using the appropriate kernel drivers will simplify and
+speed up your embedded hacking in particular by providing ready-made components.