]> git.ipfire.org Git - thirdparty/linux.git/commit
pinctrl: stm32: return errors from stm32_gpio_direction_output()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Wed, 15 Nov 2023 20:34:53 +0000 (23:34 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Nov 2023 10:22:11 +0000 (11:22 +0100)
commit5a002bf206508169dd9d8c002d6326e51f53b42c
tree2d1e27da7b6ed953b5e5bae7c37344ae0d567ecf
parent901b277eafbd98ad327525de6c9bf3cc6abd6370
pinctrl: stm32: return errors from stm32_gpio_direction_output()

In the STMicroelectronics STM32 driver, stm32_gpio_direction_output()
ignores the result of pinctrl_gpio_direction_output() for no good reason.
Let's propagate errors from pinctrl_gpio_direction_output() upstream...

Found by Linux Verification Center (linuxtesting.org) with the Svace static
analysis tool.

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/5ce023a8-db0c-13a9-be42-09e3348ca44d@omp.ru
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c