projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9945016
)
pinctrl: aspeed: Fix confusing types in return value
author
Joel Stanley
<joel@jms.id.au>
Thu, 19 Jan 2023 23:18:56 +0000
(09:48 +1030)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 14 Feb 2023 18:18:02 +0000
(19:18 +0100)
[ Upstream commit
287a344a11f1ebd31055cf9b22c88d7005f108d7
]
The function signature is int, but we return a bool. Instead return a
negative errno as the kerneldoc suggests.
Fixes: 4d3d0e4272d8 ("pinctrl: Add core support for Aspeed SoCs")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link:
https://lore.kernel.org/r/20230119231856.52014-1-joel@jms.id.au
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/aspeed/pinctrl-aspeed.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/aspeed/pinctrl-aspeed.c
b/drivers/pinctrl/aspeed/pinctrl-aspeed.c
index 83d47ff1cea8f2b1dd8f970a7f1e715b3db5d6cb..5a12fc7cf91fb5035defccaf6ba3c52513af4e46 100644
(file)
--- a/
drivers/pinctrl/aspeed/pinctrl-aspeed.c
+++ b/
drivers/pinctrl/aspeed/pinctrl-aspeed.c
@@
-122,7
+122,7
@@
static int aspeed_disable_sig(struct aspeed_pinmux_data *ctx,
int ret = 0;
if (!exprs)
- return
true
;
+ return
-EINVAL
;
while (*exprs && !ret) {
ret = aspeed_sig_expr_disable(ctx, *exprs);