Lines Matching refs:gpio_chip
26 struct gpio_chip gpio_chip; member
30 static int tps6586x_gpio_get(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_get()
43 static void tps6586x_gpio_set(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_set()
52 static int tps6586x_gpio_output(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_output()
67 static int tps6586x_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_to_irq()
88 tps6586x_gpio->gpio_chip.owner = THIS_MODULE; in tps6586x_gpio_probe()
89 tps6586x_gpio->gpio_chip.label = pdev->name; in tps6586x_gpio_probe()
90 tps6586x_gpio->gpio_chip.parent = &pdev->dev; in tps6586x_gpio_probe()
91 tps6586x_gpio->gpio_chip.ngpio = 4; in tps6586x_gpio_probe()
92 tps6586x_gpio->gpio_chip.can_sleep = true; in tps6586x_gpio_probe()
95 tps6586x_gpio->gpio_chip.direction_output = tps6586x_gpio_output; in tps6586x_gpio_probe()
96 tps6586x_gpio->gpio_chip.set = tps6586x_gpio_set; in tps6586x_gpio_probe()
97 tps6586x_gpio->gpio_chip.get = tps6586x_gpio_get; in tps6586x_gpio_probe()
98 tps6586x_gpio->gpio_chip.to_irq = tps6586x_gpio_to_irq; in tps6586x_gpio_probe()
101 tps6586x_gpio->gpio_chip.of_node = pdev->dev.parent->of_node; in tps6586x_gpio_probe()
104 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; in tps6586x_gpio_probe()
106 tps6586x_gpio->gpio_chip.base = -1; in tps6586x_gpio_probe()
108 return devm_gpiochip_add_data(&pdev->dev, &tps6586x_gpio->gpio_chip, in tps6586x_gpio_probe()