pinctrl/rockchip: add error handling for pull/drive register getters
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 22 Apr 2022 17:09:13 +0000 (19:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:27:09 +0000 (08:27 +0100)
commitddca674af1bada8ec9725df7e4ad186971e99bae
treed806d70477aef0d18ef60f4f0ee65aa638868f29
parent259ab8fb8c7ea10acf646d0ca1b7c462c2bdc1d2
pinctrl/rockchip: add error handling for pull/drive register getters

[ Upstream commit 42573ab3b9f94fbeba8b84e142703ea551624f6d ]

Add error handling for the pull and driver register getters in preparation
for RK3588 support.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Heiko Stübner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220422170920.401914-13-sebastian.reichel@collabora.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Stable-dep-of: 31b62a98de42 ("pinctrl: rockchip: fix reading pull type on rk3568")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-rockchip.c
drivers/pinctrl/pinctrl-rockchip.h