Lines Matching refs:gpio_chip
26 struct gpio_chip gpio_chip; member
29 #define to_tgd(gc) container_of(gc, struct tps65912_gpio_data, gpio_chip)
31 static int tps65912_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_get()
45 static void tps65912_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65912_gpio_set()
59 static int tps65912_gpio_output(struct gpio_chip *gc, unsigned offset, in tps65912_gpio_output()
72 static int tps65912_gpio_input(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_input()
81 static struct gpio_chip template_chip = {
106 tps65912_gpio->gpio_chip = template_chip; in tps65912_gpio_probe()
107 tps65912_gpio->gpio_chip.dev = &pdev->dev; in tps65912_gpio_probe()
109 tps65912_gpio->gpio_chip.base = pdata->gpio_base; in tps65912_gpio_probe()
111 ret = gpiochip_add(&tps65912_gpio->gpio_chip); in tps65912_gpio_probe()
126 gpiochip_remove(&tps65912_gpio->gpio_chip); in tps65912_gpio_remove()