Lines Matching refs:gpio_chip

37 	struct gpio_chip gpio_chip;  member
41 static inline struct tps6586x_gpio *to_tps6586x_gpio(struct gpio_chip *chip) in to_tps6586x_gpio()
43 return container_of(chip, struct tps6586x_gpio, gpio_chip); in to_tps6586x_gpio()
46 static int tps6586x_gpio_get(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_get()
59 static void tps6586x_gpio_set(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_set()
68 static int tps6586x_gpio_output(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_output()
83 static int tps6586x_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_to_irq()
105 tps6586x_gpio->gpio_chip.owner = THIS_MODULE; in tps6586x_gpio_probe()
106 tps6586x_gpio->gpio_chip.label = pdev->name; in tps6586x_gpio_probe()
107 tps6586x_gpio->gpio_chip.dev = &pdev->dev; in tps6586x_gpio_probe()
108 tps6586x_gpio->gpio_chip.ngpio = 4; in tps6586x_gpio_probe()
109 tps6586x_gpio->gpio_chip.can_sleep = true; in tps6586x_gpio_probe()
112 tps6586x_gpio->gpio_chip.direction_output = tps6586x_gpio_output; in tps6586x_gpio_probe()
113 tps6586x_gpio->gpio_chip.set = tps6586x_gpio_set; in tps6586x_gpio_probe()
114 tps6586x_gpio->gpio_chip.get = tps6586x_gpio_get; in tps6586x_gpio_probe()
115 tps6586x_gpio->gpio_chip.to_irq = tps6586x_gpio_to_irq; in tps6586x_gpio_probe()
118 tps6586x_gpio->gpio_chip.of_node = pdev->dev.parent->of_node; in tps6586x_gpio_probe()
121 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; in tps6586x_gpio_probe()
123 tps6586x_gpio->gpio_chip.base = -1; in tps6586x_gpio_probe()
125 ret = gpiochip_add(&tps6586x_gpio->gpio_chip); in tps6586x_gpio_probe()
140 gpiochip_remove(&tps6586x_gpio->gpio_chip); in tps6586x_gpio_remove()