aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-03-08 18:40:19 -0500
committerLinus Walleij <linus.walleij@linaro.org>2018-03-22 23:20:30 -0400
commit02bf219d2f627dc962b43975433dcd6ce8f02c85 (patch)
tree3f61206ee49104f016aa2c9f18eec76f4b6fd039
parent7e6332592bbcdc446b4984efab78a6c471b14fa6 (diff)
Documentation: gpio: Move introduction to driver-api
Move gpio/intro.txt to driver-api/gpio/intro.rst and make sure it builds cleanly as ReST. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--Documentation/driver-api/gpio/index.rst7
-rw-r--r--Documentation/driver-api/gpio/intro.rst (renamed from Documentation/gpio/gpio.txt)9
-rw-r--r--Documentation/gpio/00-INDEX2
3 files changed, 14 insertions, 4 deletions
diff --git a/Documentation/driver-api/gpio/index.rst b/Documentation/driver-api/gpio/index.rst
index 6dd4aa647f27..db47d845f473 100644
--- a/Documentation/driver-api/gpio/index.rst
+++ b/Documentation/driver-api/gpio/index.rst
@@ -2,6 +2,13 @@
2General Purpose Input/Output (GPIO) 2General Purpose Input/Output (GPIO)
3=================================== 3===================================
4 4
5Contents:
6
7.. toctree::
8 :maxdepth: 2
9
10 intro
11
5Core 12Core
6==== 13====
7 14
diff --git a/Documentation/gpio/gpio.txt b/Documentation/driver-api/gpio/intro.rst
index cd9b356e88cd..74591489d0b5 100644
--- a/Documentation/gpio/gpio.txt
+++ b/Documentation/driver-api/gpio/intro.rst
@@ -1,3 +1,8 @@
1============
2Introduction
3============
4
5
1GPIO Interfaces 6GPIO Interfaces
2=============== 7===============
3 8
@@ -9,9 +14,9 @@ Due to the history of GPIO interfaces in the kernel, there are two different
9ways to obtain and use GPIOs: 14ways to obtain and use GPIOs:
10 15
11 - The descriptor-based interface is the preferred way to manipulate GPIOs, 16 - The descriptor-based interface is the preferred way to manipulate GPIOs,
12and is described by all the files in this directory excepted gpio-legacy.txt. 17 and is described by all the files in this directory excepted gpio-legacy.txt.
13 - The legacy integer-based interface which is considered deprecated (but still 18 - The legacy integer-based interface which is considered deprecated (but still
14usable for compatibility reasons) is documented in gpio-legacy.txt. 19 usable for compatibility reasons) is documented in gpio-legacy.txt.
15 20
16The remainder of this document applies to the new descriptor-based interface. 21The remainder of this document applies to the new descriptor-based interface.
17gpio-legacy.txt contains the same information applied to the legacy 22gpio-legacy.txt contains the same information applied to the legacy
diff --git a/Documentation/gpio/00-INDEX b/Documentation/gpio/00-INDEX
index 179beb234f98..52fe0fa6c964 100644
--- a/Documentation/gpio/00-INDEX
+++ b/Documentation/gpio/00-INDEX
@@ -1,7 +1,5 @@
100-INDEX 100-INDEX
2 - This file 2 - This file
3gpio.txt
4 - Introduction to GPIOs and their kernel interfaces
5consumer.txt 3consumer.txt
6 - How to obtain and use GPIOs in a driver 4 - How to obtain and use GPIOs in a driver
7driver.txt 5driver.txt