summaryrefslogtreecommitdiff
path: root/Documentation/driver-api/pin-control.rst
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2021-03-28 19:42:22 +0300
committerLinus Walleij <linus.walleij@linaro.org>2021-04-08 17:02:43 +0300
commit775c93a7c5b4d31f716db21fd097a64e9b5bf3b7 (patch)
treec8339aa9b09e71e07582dd6afe9b4315eb2a5e19 /Documentation/driver-api/pin-control.rst
parent8a83ecd8ec6ce8c1c15e00a8ae3ebc71107ef044 (diff)
downloadlinux-775c93a7c5b4d31f716db21fd097a64e9b5bf3b7.tar.xz
docs: pin-control: Fix error path for control state example
The error is constructed using the wrong variable. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/20210328164222.720525-1-niklas.soderlund+renesas@ragnatech.se 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.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst
index c905b273e833..e2474425fb0c 100644
--- a/Documentation/driver-api/pin-control.rst
+++ b/Documentation/driver-api/pin-control.rst
@@ -1235,7 +1235,7 @@ default state like this::
foo->s = pinctrl_lookup_state(foo->p, PINCTRL_STATE_DEFAULT);
if (IS_ERR(foo->s)) {
/* FIXME: clean up "foo" here */
- return PTR_ERR(s);
+ return PTR_ERR(foo->s);
}
ret = pinctrl_select_state(foo->s);