Lines Matching refs:gpio_chip
27 struct gpio_chip gpio_chip; member
30 static int wm8994_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_request()
53 static int wm8994_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_direction_in()
62 static int wm8994_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_get()
78 static int wm8994_gpio_direction_out(struct gpio_chip *chip, in wm8994_gpio_direction_out()
91 static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8994_gpio_set()
102 static int wm8994_gpio_set_config(struct gpio_chip *chip, unsigned int offset, in wm8994_gpio_set_config()
123 static int wm8994_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_to_irq()
187 static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm8994_gpio_dbg_show()
247 static const struct gpio_chip template_chip = {
273 wm8994_gpio->gpio_chip = template_chip; in wm8994_gpio_probe()
274 wm8994_gpio->gpio_chip.ngpio = WM8994_GPIO_MAX; in wm8994_gpio_probe()
275 wm8994_gpio->gpio_chip.parent = &pdev->dev; in wm8994_gpio_probe()
277 wm8994_gpio->gpio_chip.base = pdata->gpio_base; in wm8994_gpio_probe()
279 wm8994_gpio->gpio_chip.base = -1; in wm8994_gpio_probe()
281 return devm_gpiochip_add_data(&pdev->dev, &wm8994_gpio->gpio_chip, wm8994_gpio); in wm8994_gpio_probe()