gpio: reg: use new GPIO line value setter callbacks
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 23 Jun 2025 07:57:16 +0000 (09:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 7 Jul 2025 07:21:52 +0000 (09:21 +0200)
commit527db0a8811697968df30797eae2e1d5f8b6964c
tree9bad32b4ad759c64ebcf9a87c7ffdea8dd0c5e73
parentcfbbf275ffcf05c82994b8787b0d1974aa1569d8
gpio: reg: use new GPIO line value setter callbacks

struct gpio_chip now has callbacks for setting line values that return
an integer, allowing to indicate failures. Convert the legacy generic
gpio-reg module to using them. We have to update the two legacy ARM
platforms that use it at the same time as they call the set_multiple()
callbacks directly (they shouldn't but it's old technical debt I
suppose).

Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250623-gpiochip-set-rv-gpio-v3-1-90f0e170a846@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
arch/arm/mach-sa1100/assabet.c
arch/arm/mach-sa1100/neponset.c
drivers/gpio/gpio-reg.c