Lines Matching refs:gpio_chip

26 	struct gpio_chip gpio_chip;  member
30 static inline struct tps65910_gpio *to_tps65910_gpio(struct gpio_chip *chip) in to_tps65910_gpio()
32 return container_of(chip, struct tps65910_gpio, gpio_chip); in to_tps65910_gpio()
35 static int tps65910_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65910_gpio_get()
49 static void tps65910_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65910_gpio_set()
63 static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset, in tps65910_gpio_output()
76 static int tps65910_gpio_input(struct gpio_chip *gc, unsigned offset) in tps65910_gpio_input()
131 tps65910_gpio->gpio_chip.owner = THIS_MODULE; in tps65910_gpio_probe()
132 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
136 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; in tps65910_gpio_probe()
139 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO; in tps65910_gpio_probe()
144 tps65910_gpio->gpio_chip.can_sleep = true; in tps65910_gpio_probe()
145 tps65910_gpio->gpio_chip.direction_input = tps65910_gpio_input; in tps65910_gpio_probe()
146 tps65910_gpio->gpio_chip.direction_output = tps65910_gpio_output; in tps65910_gpio_probe()
147 tps65910_gpio->gpio_chip.set = tps65910_gpio_set; in tps65910_gpio_probe()
148 tps65910_gpio->gpio_chip.get = tps65910_gpio_get; in tps65910_gpio_probe()
149 tps65910_gpio->gpio_chip.dev = &pdev->dev; in tps65910_gpio_probe()
151 tps65910_gpio->gpio_chip.of_node = tps65910->dev->of_node; in tps65910_gpio_probe()
154 tps65910_gpio->gpio_chip.base = pdata->gpio_base; in tps65910_gpio_probe()
156 tps65910_gpio->gpio_chip.base = -1; in tps65910_gpio_probe()
160 tps65910_gpio->gpio_chip.ngpio); in tps65910_gpio_probe()
166 for (i = 0; i < tps65910_gpio->gpio_chip.ngpio; ++i) { in tps65910_gpio_probe()
178 ret = gpiochip_add(&tps65910_gpio->gpio_chip); in tps65910_gpio_probe()
193 gpiochip_remove(&tps65910_gpio->gpio_chip); in tps65910_gpio_remove()