Lines Matching refs:gpio_chip
24 struct gpio_chip gpio_chip; member
27 static int arizona_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in arizona_gpio_direction_in()
50 static int arizona_gpio_get(struct gpio_chip *chip, unsigned offset) in arizona_gpio_get()
96 static int arizona_gpio_direction_out(struct gpio_chip *chip, in arizona_gpio_direction_out()
125 static void arizona_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in arizona_gpio_set()
137 static const struct gpio_chip template_chip = {
160 arizona_gpio->gpio_chip = template_chip; in arizona_gpio_probe()
161 arizona_gpio->gpio_chip.parent = &pdev->dev; in arizona_gpio_probe()
163 arizona_gpio->gpio_chip.of_node = arizona->dev->of_node; in arizona_gpio_probe()
173 arizona_gpio->gpio_chip.ngpio = 5; in arizona_gpio_probe()
177 arizona_gpio->gpio_chip.ngpio = 2; in arizona_gpio_probe()
186 arizona_gpio->gpio_chip.base = pdata->gpio_base; in arizona_gpio_probe()
188 arizona_gpio->gpio_chip.base = -1; in arizona_gpio_probe()
192 ret = devm_gpiochip_add_data(&pdev->dev, &arizona_gpio->gpio_chip, in arizona_gpio_probe()