]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpiolib: wrap gpio_chip::set()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 20 Feb 2025 09:57:00 +0000 (10:57 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 26 Feb 2025 10:17:39 +0000 (11:17 +0100)
commitd36058b89a4aa30865d4cfeb101bbfd1d1dcb22f
tree38a7cd46f13bd0567b1d6f3ed97a5d3bca3ab8a1
parent8ce258f62f90cb2d339cc39fa43e5634594a9dfb
gpiolib: wrap gpio_chip::set()

We have three places where we dereference the gpio_chip::set() callback.
In order to make it easier to incorporate the upcoming new variant of
this callback (one returning an integer value), wrap it in a helper so
that the dereferencing only happens once.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20250220-gpio-set-retval-v2-3-bc4cfd38dae3@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib.c