Lines Matching defs:gpio
3 * devres.c - managed gpio resources
11 #include <linux/gpio.h>
12 #include <linux/gpio/consumer.h>
27 struct gpio_desc **this = res, **gpio = data;
29 return *this == *gpio;
335 * devm_gpiod_unhinge - Remove resource management from a gpio descriptor
385 unsigned *gpio = res;
387 gpio_free(*gpio);
392 unsigned *this = res, *gpio = data;
394 return *this == *gpio;
400 * @gpio: GPIO to allocate
412 int devm_gpio_request(struct device *dev, unsigned gpio, const char *label)
421 rc = gpio_request(gpio, label);
427 *dr = gpio;
437 * @gpio: the GPIO number
441 int devm_gpio_request_one(struct device *dev, unsigned gpio,
451 rc = gpio_request_one(gpio, flags, label);
457 *dr = gpio;
467 * @gpio: GPIO to free
474 void devm_gpio_free(struct device *dev, unsigned int gpio)
478 &gpio));
499 * The gpio chip automatically be released when the device is unbound.