X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=include%2Fasm-generic%2Fgpio.h;h=1ff4e221cb4dfc705e58ff7155835c0c68459dc9;hb=141124c02059eee9dbc5c86ea797b1ca888e77f7;hp=d466c8d8826de5f65cd8b1f5d60e04e125a41799;hpb=03e369d93239545647fe0843d424265d0b6a1f1c;p=linux-2.6-block.git diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index d466c8d8826d..1ff4e221cb4d 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -177,6 +177,10 @@ extern int gpio_request_one(unsigned gpio, unsigned long flags, const char *labe extern int gpio_request_array(const struct gpio *array, size_t num); extern void gpio_free_array(const struct gpio *array, size_t num); +/* bindings for managed devices that want to request gpios */ +int devm_gpio_request(struct device *dev, unsigned gpio, const char *label); +void devm_gpio_free(struct device *dev, unsigned int gpio); + #ifdef CONFIG_GPIO_SYSFS /*