Commit 4829297c authored by Siarhei Volkau's avatar Siarhei Volkau Committed by Linus Walleij

docs/pinctrl: fix runtime pinmuxing example

The example declares "struct pinctrl *p" but refers to
"foo->p" which isn't declared in the context of the example.
Signed-off-by: default avatarSiarhei Volkau <lis8215@gmail.com>
Link: https://lore.kernel.org/r/20221101205159.1468069-3-lis8215@gmail.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c1542be1
......@@ -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))
...
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment