pinctrl: aspeed: Fix confusing types in return value
[ Upstream commit287a344a11
] The function signature is int, but we return a bool. Instead return a negative errno as the kerneldoc suggests. Fixes:4d3d0e4272
("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>
This commit is contained in:
Родитель
99450163bc
Коммит
a2a1065739
|
@ -122,7 +122,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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче