Lines Matching defs:gpio
15 #include <linux/gpio/driver.h>
327 struct gpio_chip gpio;
1342 s->gpio.owner = THIS_MODULE;
1343 s->gpio.parent = dev;
1344 s->gpio.label = dev_name(dev);
1345 s->gpio.direction_input = sc16is7xx_gpio_direction_input;
1346 s->gpio.get = sc16is7xx_gpio_get;
1347 s->gpio.direction_output = sc16is7xx_gpio_direction_output;
1348 s->gpio.set = sc16is7xx_gpio_set;
1349 s->gpio.base = -1;
1350 s->gpio.ngpio = devtype->nr_gpio;
1351 s->gpio.can_sleep = 1;
1352 ret = gpiochip_add_data(&s->gpio, s);
1379 gpiochip_remove(&s->gpio);
1406 gpiochip_remove(&s->gpio);