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()
90 tps6586x_gpio->gpio_chip.owner = THIS_MODULE; in tps6586x_gpio_probe()
91 tps6586x_gpio->gpio_chip.label = pdev->name; in tps6586x_gpio_probe()
92 tps6586x_gpio->gpio_chip.parent = &pdev->dev; in tps6586x_gpio_probe()
93 tps6586x_gpio->gpio_chip.ngpio = 4; in tps6586x_gpio_probe()
94 tps6586x_gpio->gpio_chip.can_sleep = true; in tps6586x_gpio_probe()
97 tps6586x_gpio->gpio_chip.direction_output = tps6586x_gpio_output; in tps6586x_gpio_probe()
98 tps6586x_gpio->gpio_chip.set = tps6586x_gpio_set; in tps6586x_gpio_probe()
99 tps6586x_gpio->gpio_chip.get = tps6586x_gpio_get; in tps6586x_gpio_probe()
100 tps6586x_gpio->gpio_chip.to_irq = tps6586x_gpio_to_irq; in tps6586x_gpio_probe()
103 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; in tps6586x_gpio_probe()
105 tps6586x_gpio->gpio_chip.base = -1; in tps6586x_gpio_probe()
107 return devm_gpiochip_add_data(&pdev->dev, &tps6586x_gpio->gpio_chip, in tps6586x_gpio_probe()