projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1542be
)
docs/pinctrl: fix runtime pinmuxing example
author
Siarhei Volkau
<lis8215@gmail.com>
Tue, 1 Nov 2022 20:51:59 +0000
(23:51 +0300)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 9 Nov 2022 08:27:53 +0000
(09:27 +0100)
The example declares "struct pinctrl *p" but refers to
"foo->p" which isn't declared in the context of the example.
Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Link:
https://lore.kernel.org/r/20221101205159.1468069-3-lis8215@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/driver-api/pin-control.rst
patch
|
blob
|
history
diff --git
a/Documentation/driver-api/pin-control.rst
b/Documentation/driver-api/pin-control.rst
index
19a41c6
..
0022e93
100644
(file)
--- a/
Documentation/driver-api/pin-control.rst
+++ b/
Documentation/driver-api/pin-control.rst
@@
-1399,11
+1399,11
@@
on the pins defined by group B::
if (IS_ERR(p))
...
- s1 = pinctrl_lookup_state(
foo->
p, "pos-A");
+ s1 = pinctrl_lookup_state(p, "pos-A");
if (IS_ERR(s1))
...
- s2 = pinctrl_lookup_state(
foo->
p, "pos-B");
+ s2 = pinctrl_lookup_state(p, "pos-B");
if (IS_ERR(s2))
...
}