Lines Matching defs:gpio
2 #include <linux/gpio/consumer.h>
3 #include <linux/gpio/driver.h>
5 #include <linux/gpio.h>
9 void gpio_free(unsigned gpio)
11 gpiod_free(gpio_to_desc(gpio));
17 * @gpio: the GPIO number
21 int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)
26 desc = gpio_to_desc(gpio);
29 if (!desc && gpio_is_valid(gpio))
56 int gpio_request(unsigned gpio, const char *label)
58 struct gpio_desc *desc = gpio_to_desc(gpio);
61 if (!desc && gpio_is_valid(gpio))
70 * @array: array of the 'struct gpio'
73 int gpio_request_array(const struct gpio *array, size_t num)
78 err = gpio_request_one(array->gpio, array->flags, array->label);
86 gpio_free((--array)->gpio);
93 * @array: array of the 'struct gpio'
96 void gpio_free_array(const struct gpio *array, size_t num)
99 gpio_free((array++)->gpio);