Lines Matching refs:gpio_chip
31 struct gpio_chip gpio_chip; member
34 static inline struct wm8994_gpio *to_wm8994_gpio(struct gpio_chip *chip) in to_wm8994_gpio()
36 return container_of(chip, struct wm8994_gpio, gpio_chip); in to_wm8994_gpio()
39 static int wm8994_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_request()
62 static int wm8994_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_direction_in()
71 static int wm8994_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_get()
87 static int wm8994_gpio_direction_out(struct gpio_chip *chip, in wm8994_gpio_direction_out()
100 static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8994_gpio_set()
111 static int wm8994_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_to_irq()
175 static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm8994_gpio_dbg_show()
235 static struct gpio_chip template_chip = {
261 wm8994_gpio->gpio_chip = template_chip; in wm8994_gpio_probe()
262 wm8994_gpio->gpio_chip.ngpio = WM8994_GPIO_MAX; in wm8994_gpio_probe()
263 wm8994_gpio->gpio_chip.dev = &pdev->dev; in wm8994_gpio_probe()
265 wm8994_gpio->gpio_chip.base = pdata->gpio_base; in wm8994_gpio_probe()
267 wm8994_gpio->gpio_chip.base = -1; in wm8994_gpio_probe()
269 ret = gpiochip_add(&wm8994_gpio->gpio_chip); in wm8994_gpio_probe()
288 gpiochip_remove(&wm8994_gpio->gpio_chip); in wm8994_gpio_remove()