diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-03-08 18:40:19 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-03-22 23:20:30 -0400 |
commit | 02bf219d2f627dc962b43975433dcd6ce8f02c85 (patch) | |
tree | 3f61206ee49104f016aa2c9f18eec76f4b6fd039 | |
parent | 7e6332592bbcdc446b4984efab78a6c471b14fa6 (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.rst | 7 | ||||
-rw-r--r-- | Documentation/driver-api/gpio/intro.rst (renamed from Documentation/gpio/gpio.txt) | 9 | ||||
-rw-r--r-- | Documentation/gpio/00-INDEX | 2 |
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 @@ | |||
2 | General Purpose Input/Output (GPIO) | 2 | General Purpose Input/Output (GPIO) |
3 | =================================== | 3 | =================================== |
4 | 4 | ||
5 | Contents: | ||
6 | |||
7 | .. toctree:: | ||
8 | :maxdepth: 2 | ||
9 | |||
10 | intro | ||
11 | |||
5 | Core | 12 | Core |
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 | ============ | ||
2 | Introduction | ||
3 | ============ | ||
4 | |||
5 | |||
1 | GPIO Interfaces | 6 | GPIO Interfaces |
2 | =============== | 7 | =============== |
3 | 8 | ||
@@ -9,9 +14,9 @@ Due to the history of GPIO interfaces in the kernel, there are two different | |||
9 | ways to obtain and use GPIOs: | 14 | ways 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, |
12 | and 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 |
14 | usable for compatibility reasons) is documented in gpio-legacy.txt. | 19 | usable for compatibility reasons) is documented in gpio-legacy.txt. |
15 | 20 | ||
16 | The remainder of this document applies to the new descriptor-based interface. | 21 | The remainder of this document applies to the new descriptor-based interface. |
17 | gpio-legacy.txt contains the same information applied to the legacy | 22 | gpio-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 @@ | |||
1 | 00-INDEX | 1 | 00-INDEX |
2 | - This file | 2 | - This file |
3 | gpio.txt | ||
4 | - Introduction to GPIOs and their kernel interfaces | ||
5 | consumer.txt | 3 | consumer.txt |
6 | - How to obtain and use GPIOs in a driver | 4 | - How to obtain and use GPIOs in a driver |
7 | driver.txt | 5 | driver.txt |