Lines Matching refs:gpio_chip
30 struct gpio_chip gpio_chip; member
33 static inline struct wm831x_gpio *to_wm831x_gpio(struct gpio_chip *chip) in to_wm831x_gpio()
35 return container_of(chip, struct wm831x_gpio, gpio_chip); in to_wm831x_gpio()
38 static int wm831x_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_direction_in()
52 static int wm831x_gpio_get(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_get()
68 static void wm831x_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm831x_gpio_set()
77 static int wm831x_gpio_direction_out(struct gpio_chip *chip, in wm831x_gpio_direction_out()
100 static int wm831x_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_to_irq()
109 static int wm831x_gpio_set_debounce(struct gpio_chip *chip, unsigned offset, in wm831x_gpio_set_debounce()
141 static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm831x_gpio_dbg_show()
233 static struct gpio_chip template_chip = {
259 wm831x_gpio->gpio_chip = template_chip; in wm831x_gpio_probe()
260 wm831x_gpio->gpio_chip.ngpio = wm831x->num_gpio; in wm831x_gpio_probe()
261 wm831x_gpio->gpio_chip.dev = &pdev->dev; in wm831x_gpio_probe()
263 wm831x_gpio->gpio_chip.base = pdata->gpio_base; in wm831x_gpio_probe()
265 wm831x_gpio->gpio_chip.base = -1; in wm831x_gpio_probe()
267 ret = gpiochip_add(&wm831x_gpio->gpio_chip); in wm831x_gpio_probe()
282 gpiochip_remove(&wm831x_gpio->gpio_chip); in wm831x_gpio_remove()