gpiolib: provide gpio_device_get_base()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 5 Sep 2023 18:52:55 +0000 (20:52 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 13 Oct 2023 07:05:57 +0000 (09:05 +0200)
commit8c85a102fc4e5c0c942c10677fa43f7a19baa92f
tree966ed4fa3777ba5e516243a414116a500b2dbede
parent9acdf6209f226846cc1e354a6b3da3c927898926
gpiolib: provide gpio_device_get_base()

Let's start adding getters for the opaque struct gpio_device. Start with
a function allowing to retrieve the base GPIO number.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h