Lines Matching refs:gpio_chip
4721 static void rt5677_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in rt5677_gpio_set()
4741 static int rt5677_gpio_direction_out(struct gpio_chip *chip, in rt5677_gpio_direction_out()
4766 static int rt5677_gpio_get(struct gpio_chip *chip, unsigned offset) in rt5677_gpio_get()
4778 static int rt5677_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in rt5677_gpio_direction_in()
4832 static int rt5677_to_irq(struct gpio_chip *chip, unsigned offset) in rt5677_to_irq()
4863 static const struct gpio_chip rt5677_template_chip = {
4879 rt5677->gpio_chip = rt5677_template_chip; in rt5677_init_gpio()
4880 rt5677->gpio_chip.ngpio = RT5677_GPIO_NUM; in rt5677_init_gpio()
4881 rt5677->gpio_chip.parent = &i2c->dev; in rt5677_init_gpio()
4882 rt5677->gpio_chip.base = -1; in rt5677_init_gpio()
4884 ret = gpiochip_add_data(&rt5677->gpio_chip, rt5677); in rt5677_init_gpio()
4893 gpiochip_remove(&rt5677->gpio_chip); in rt5677_free_gpio()