Lines Matching refs:gpio_chip
39 struct gpio_chip gpio_chip; member
55 static inline struct snd_soc_component *gpio_to_component(struct gpio_chip *chip) in gpio_to_component()
62 static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_request()
70 static int snd_soc_ac97_gpio_direction_in(struct gpio_chip *chip, in snd_soc_ac97_gpio_direction_in()
80 static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_get()
94 static void snd_soc_ac97_gpio_set(struct gpio_chip *chip, unsigned offset, in snd_soc_ac97_gpio_set()
107 static int snd_soc_ac97_gpio_direction_out(struct gpio_chip *chip, in snd_soc_ac97_gpio_direction_out()
118 static const struct gpio_chip snd_soc_ac97_gpio_chip = {
140 gpio_priv->gpio_chip = snd_soc_ac97_gpio_chip; in snd_soc_ac97_init_gpio()
141 gpio_priv->gpio_chip.ngpio = AC97_NUM_GPIOS; in snd_soc_ac97_init_gpio()
142 gpio_priv->gpio_chip.parent = component->dev; in snd_soc_ac97_init_gpio()
143 gpio_priv->gpio_chip.base = -1; in snd_soc_ac97_init_gpio()
145 ret = gpiochip_add_data(&gpio_priv->gpio_chip, gpio_priv); in snd_soc_ac97_init_gpio()
153 gpiochip_remove(&ac97->gpio_priv->gpio_chip); in snd_soc_ac97_free_gpio()