Lines Matching refs:gpio_chip
26 struct gpio_chip gpio_chip; member
29 static int wm831x_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_direction_in()
43 static int wm831x_gpio_get(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_get()
59 static void wm831x_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm831x_gpio_set()
68 static int wm831x_gpio_direction_out(struct gpio_chip *chip, in wm831x_gpio_direction_out()
91 static int wm831x_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_to_irq()
129 static int wm831x_set_config(struct gpio_chip *chip, unsigned int offset, in wm831x_set_config()
154 static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm831x_gpio_dbg_show()
246 static const struct gpio_chip template_chip = {
272 wm831x_gpio->gpio_chip = template_chip; in wm831x_gpio_probe()
273 wm831x_gpio->gpio_chip.ngpio = wm831x->num_gpio; in wm831x_gpio_probe()
274 wm831x_gpio->gpio_chip.parent = &pdev->dev; in wm831x_gpio_probe()
276 wm831x_gpio->gpio_chip.base = pdata->gpio_base; in wm831x_gpio_probe()
278 wm831x_gpio->gpio_chip.base = -1; in wm831x_gpio_probe()
280 wm831x_gpio->gpio_chip.of_node = wm831x->dev->of_node; in wm831x_gpio_probe()
283 ret = devm_gpiochip_add_data(&pdev->dev, &wm831x_gpio->gpio_chip, in wm831x_gpio_probe()