mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
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>
This commit is contained in:
@@ -787,6 +787,9 @@ void gpiochip_unlock_as_irq(struct gpio_chip *gc, unsigned int offset);
|
||||
struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc);
|
||||
struct gpio_device *gpiod_to_gpio_device(struct gpio_desc *desc);
|
||||
|
||||
/* struct gpio_device getters */
|
||||
int gpio_device_get_base(struct gpio_device *gdev);
|
||||
|
||||
#else /* CONFIG_GPIOLIB */
|
||||
|
||||
#include <linux/err.h>
|
||||
|
||||
Reference in New Issue
Block a user