summaryrefslogtreecommitdiffstats
path: root/Documentation/driver-api/pin-control.rst
diff options
context:
space:
mode:
authorSiarhei Volkau <lis8215@gmail.com>2022-11-01 23:51:58 +0300
committerLinus Walleij <linus.walleij@linaro.org>2022-11-09 09:27:53 +0100
commitc1542be1ef070589996ea4ebf847afa5577298af (patch)
treef0bf21d6e9f6fa6e58bfa83c9e2783eebf897419 /Documentation/driver-api/pin-control.rst
parent97775ebbe89b5a97e9465e4378f5b1c2fc7d4faa (diff)
downloadlinux-c1542be1ef070589996ea4ebf847afa5577298af.tar.gz
linux-c1542be1ef070589996ea4ebf847afa5577298af.tar.bz2
linux-c1542be1ef070589996ea4ebf847afa5577298af.zip
docs/pinctrl: fix pinctrl_select_state examples
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>
Diffstat (limited to 'Documentation/driver-api/pin-control.rst')
-rw-r--r--Documentation/driver-api/pin-control.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst
index 71eefe5a023f..19a41c68d579 100644
--- 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)
...