diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-10-11 17:34:15 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-10-16 22:11:16 +0200 |
commit | c771c2f484857f3b1fc81d180485e96b7cb67c17 (patch) | |
tree | 6ed5046cd43c58197051913f6351182a44a76af7 /include/linux/gpio | |
parent | 30cefeacec3e289c00128f28b831fb251650eea6 (diff) | |
download | lwn-c771c2f484857f3b1fc81d180485e96b7cb67c17.tar.gz lwn-c771c2f484857f3b1fc81d180485e96b7cb67c17.zip |
gpiolib: provide generic request/free implementations
Provide generic request/free implementations that pinctrl aware gpio
drivers can use instead of open coding if they use a 1:1 pin to gpio
signal mapping.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r-- | include/linux/gpio/driver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 1aed31c5ffba..d1baebf350d8 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -206,6 +206,9 @@ int _gpiochip_irqchip_add(struct gpio_chip *gpiochip, #endif /* CONFIG_GPIOLIB_IRQCHIP */ +int gpiochip_generic_request(struct gpio_chip *chip, unsigned offset); +void gpiochip_generic_free(struct gpio_chip *chip, unsigned offset); + #ifdef CONFIG_PINCTRL /** |