Lines Matching refs:gpio
2 #include <linux/gpio/consumer.h>
3 #include <linux/gpio/driver.h>
5 #include <linux/gpio.h>
12 void gpio_free(unsigned gpio)
14 gpiod_free(gpio_to_desc(gpio));
20 * @gpio: the GPIO number
26 int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)
31 desc = gpio_to_desc(gpio);
34 if (!desc && gpio_is_valid(gpio))
64 int gpio_request(unsigned gpio, const char *label)
66 struct gpio_desc *desc = gpio_to_desc(gpio);
69 if (!desc && gpio_is_valid(gpio))
78 * @array: array of the 'struct gpio'
83 int gpio_request_array(const struct gpio *array, size_t num)
88 err = gpio_request_one(array->gpio, array->flags, array->label);
96 gpio_free((--array)->gpio);
103 * @array: array of the 'struct gpio'
108 void gpio_free_array(const struct gpio *array, size_t num)
111 gpio_free((array++)->gpio);