Skip to content

Commit 486707b

Browse files
thierryredingLinus Walleij
authored andcommitted
docs: driver-api: Add GPIO section
This adds a section about the various parts of the GPIO subsystem to the driver API documentation. Note that this isn't exhaustive documentation, but rather focusses on pulling in the kerneldoc from various sources, in order to improve coverage of kerneldoc processing. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 2d9d051 commit 486707b

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

‎Documentation/driver-api/gpio.rst‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
===================================
2+
General Purpose Input/Output (GPIO)
3+
===================================
4+
5+
Core
6+
====
7+
8+
.. kernel-doc:: include/linux/gpio/driver.h
9+
:internal:
10+
11+
.. kernel-doc:: drivers/gpio/gpiolib.c
12+
:export:
13+
14+
Legacy API
15+
==========
16+
17+
The functions listed in this section are deprecated. The GPIO descriptor based
18+
API described above should be used in new code.
19+
20+
.. kernel-doc:: drivers/gpio/gpiolib-legacy.c
21+
:export:
22+
23+
ACPI support
24+
============
25+
26+
.. kernel-doc:: drivers/gpio/gpiolib-acpi.c
27+
:export:
28+
29+
Device tree support
30+
===================
31+
32+
.. kernel-doc:: drivers/gpio/gpiolib-of.c
33+
:export:
34+
35+
Device-managed API
36+
==================
37+
38+
.. kernel-doc:: drivers/gpio/devres.c
39+
:export:
40+
41+
sysfs helpers
42+
=============
43+
44+
.. kernel-doc:: drivers/gpio/gpiolib-sysfs.c
45+
:export:

‎Documentation/driver-api/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ available subsections can be seen below.
4444
uio-howto
4545
firmware/index
4646
pinctl
47+
gpio
4748
misc_devices
4849

4950
.. only:: subproject and html

0 commit comments

Comments
 (0)