提交 1c41eb4a 编写于 作者: J Joel Stanley 提交者: zhaoxiaoqiang11

pinctrl: aspeed: Fix confusing types in return value

stable inclusion
from stable-v5.10.168
commit 61f8a493c0760883f73565d7a23af5a18f2077b2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=61f8a493c0760883f73565d7a23af5a18f2077b2

----------------------------------------------------

[ Upstream commit 287a344a ]

The function signature is int, but we return a bool. Instead return a
negative errno as the kerneldoc suggests.

Fixes: 4d3d0e42 ("pinctrl: Add core support for Aspeed SoCs")
Signed-off-by: NJoel Stanley <joel@jms.id.au>
Reviewed-by: NAndrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20230119231856.52014-1-joel@jms.id.auSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: Nzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
上级 f0146166
...@@ -121,7 +121,7 @@ static int aspeed_disable_sig(struct aspeed_pinmux_data *ctx, ...@@ -121,7 +121,7 @@ static int aspeed_disable_sig(struct aspeed_pinmux_data *ctx,
int ret = 0; int ret = 0;
if (!exprs) if (!exprs)
return true; return -EINVAL;
while (*exprs && !ret) { while (*exprs && !ret) {
ret = aspeed_sig_expr_disable(ctx, *exprs); ret = aspeed_sig_expr_disable(ctx, *exprs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册