]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 15 Jul 2025 07:54:41 +0000 (09:54 +0200)
commitff0f0d7c6587e38c308be9905e36f86e98fb9c1f
tree64762f7ac873c2c26c6160de42c403ed1dd25b26
parentdb12cdc8224845bbe31c1d7e5e7d2c2dde4847dc
gpio: wcd934x: check the return value of regmap_update_bits()

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>
drivers/gpio/gpio-wcd934x.c