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))
68 int gpio_request(unsigned gpio, const char *label)
70 struct gpio_desc *desc = gpio_to_desc(gpio);
73 if (!desc && gpio_is_valid(gpio))
82 * @array: array of the 'struct gpio'
85 int gpio_request_array(const struct gpio *array, size_t num)
90 err = gpio_request_one(array->gpio, array->flags, array->label);
98 gpio_free((--array)->gpio);
105 * @array: array of the 'struct gpio'
108 void gpio_free_array(const struct gpio *array, size_t num)
111 gpio_free((array++)->gpio);