]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: wcd934x: check the return value of regmap_update_bits()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 9 Jul 2025 06:41:39 +0000 (08:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:52 +0000 (16:25 +0200)
commitf6e3fe54b62780208f477e20086ec8256e9dbab6
treea379cb857a71c0f97bb1defcc2f9e5237e53f082
parentfbfbedc4f99d96a6060c1310c0a536cd7e7ff768
gpio: wcd934x: check the return value of regmap_update_bits()

[ Upstream commit ff0f0d7c6587e38c308be9905e36f86e98fb9c1f ]

regmap_update_bits() can fail so check its return value in
wcd_gpio_direction_output() for consistency with the rest of the code
and propagate any errors.

Link: https://lore.kernel.org/r/20250709-gpiochip-set-rv-gpio-remaining-v1-2-b8950f69618d@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-wcd934x.c