]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: aspeed: Fix confusing types in return value
authorJoel Stanley <joel@jms.id.au>
Thu, 19 Jan 2023 23:18:56 +0000 (09:48 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:32 +0000 (12:50 +0100)
commitf68e2c24dce29c5435a3ac1f2e12e3365f894c78
tree09183ae5103acd5573399c7f55fb92b6c18e7043
parent4619f465d02be83a6dec38425ab66f420ffdd807
pinctrl: aspeed: Fix confusing types in return value

[ Upstream commit 287a344a11f1ebd31055cf9b22c88d7005f108d7 ]

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

Fixes: 226ed3b8badd ("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