Lines Matching refs:gpio_chip
93 struct gpio_chip gpio_chip; member
2139 static void wm8996_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8996_gpio_set()
2147 static int wm8996_gpio_direction_out(struct gpio_chip *chip, in wm8996_gpio_direction_out()
2160 static int wm8996_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8996_gpio_get()
2173 static int wm8996_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8996_gpio_direction_in()
2183 static const struct gpio_chip wm8996_template_chip = {
2197 wm8996->gpio_chip = wm8996_template_chip; in wm8996_init_gpio()
2198 wm8996->gpio_chip.ngpio = 5; in wm8996_init_gpio()
2199 wm8996->gpio_chip.parent = wm8996->dev; in wm8996_init_gpio()
2202 wm8996->gpio_chip.base = wm8996->pdata.gpio_base; in wm8996_init_gpio()
2204 wm8996->gpio_chip.base = -1; in wm8996_init_gpio()
2206 ret = gpiochip_add_data(&wm8996->gpio_chip, wm8996); in wm8996_init_gpio()
2213 gpiochip_remove(&wm8996->gpio_chip); in wm8996_free_gpio()