mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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>
This commit is contained in:
parent
97775ebbe8
commit
c1542be1ef
1 changed files with 3 additions and 3 deletions
|
@ -1238,7 +1238,7 @@ default state like this::
|
||||||
return PTR_ERR(foo->s);
|
return PTR_ERR(foo->s);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = pinctrl_select_state(foo->s);
|
ret = pinctrl_select_state(foo->p, foo->s);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
/* FIXME: clean up "foo" here */
|
/* FIXME: clean up "foo" here */
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -1411,14 +1411,14 @@ on the pins defined by group B::
|
||||||
foo_switch()
|
foo_switch()
|
||||||
{
|
{
|
||||||
/* Enable on position A */
|
/* Enable on position A */
|
||||||
ret = pinctrl_select_state(s1);
|
ret = pinctrl_select_state(p, s1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
...
|
...
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
/* Enable on position B */
|
/* Enable on position B */
|
||||||
ret = pinctrl_select_state(s2);
|
ret = pinctrl_select_state(p, s2);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue