]> 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>
Tue, 14 Feb 2023 18:11:50 +0000 (19:11 +0100)
commitfc36278f375c6450de173b7d935de73567dc42e2
tree56afbb3d180560559a21a8272ef05e6b32b4110a
parenta81b9927f110cfcd31163f4fccf6f1bef35cca6a
pinctrl: aspeed: Fix confusing types in return value

[ Upstream commit d3482221a18e91009b47d24be7f0191be6a24de7 ]

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