projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97775eb
)
docs/pinctrl: fix pinctrl_select_state examples
author
Siarhei Volkau
<lis8215@gmail.com>
Tue, 1 Nov 2022 20:51:58 +0000
(23:51 +0300)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 9 Nov 2022 08:27:53 +0000
(09:27 +0100)
The function requires two arguments.
Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Link:
https://lore.kernel.org/r/20221101205159.1468069-2-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
71eefe5
..
19a41c6
100644
(file)
--- a/
Documentation/driver-api/pin-control.rst
+++ b/
Documentation/driver-api/pin-control.rst
@@
-1238,7
+1238,7
@@
default state like this::
return PTR_ERR(foo->s);
}
- ret = pinctrl_select_state(foo->s);
+ ret = pinctrl_select_state(foo->
p, foo->
s);
if (ret < 0) {
/* FIXME: clean up "foo" here */
return ret;
@@
-1411,14
+1411,14
@@
on the pins defined by group B::
foo_switch()
{
/* Enable on position A */
- ret = pinctrl_select_state(s1);
+ ret = pinctrl_select_state(
p,
s1);
if (ret < 0)
...
...
/* Enable on position B */
- ret = pinctrl_select_state(s2);
+ ret = pinctrl_select_state(
p,
s2);
if (ret < 0)
...