Lines Matching refs:gpio_chip

21 	struct gpio_chip gpio_chip;  member
25 static int tps65910_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65910_gpio_get()
39 static void tps65910_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65910_gpio_set()
53 static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset, in tps65910_gpio_output()
66 static int tps65910_gpio_input(struct gpio_chip *gc, unsigned offset) in tps65910_gpio_input()
121 tps65910_gpio->gpio_chip.owner = THIS_MODULE; in tps65910_gpio_probe()
122 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
126 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; in tps65910_gpio_probe()
129 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO; in tps65910_gpio_probe()
134 tps65910_gpio->gpio_chip.can_sleep = true; in tps65910_gpio_probe()
135 tps65910_gpio->gpio_chip.direction_input = tps65910_gpio_input; in tps65910_gpio_probe()
136 tps65910_gpio->gpio_chip.direction_output = tps65910_gpio_output; in tps65910_gpio_probe()
137 tps65910_gpio->gpio_chip.set = tps65910_gpio_set; in tps65910_gpio_probe()
138 tps65910_gpio->gpio_chip.get = tps65910_gpio_get; in tps65910_gpio_probe()
139 tps65910_gpio->gpio_chip.parent = &pdev->dev; in tps65910_gpio_probe()
141 tps65910_gpio->gpio_chip.of_node = tps65910->dev->of_node; in tps65910_gpio_probe()
144 tps65910_gpio->gpio_chip.base = pdata->gpio_base; in tps65910_gpio_probe()
146 tps65910_gpio->gpio_chip.base = -1; in tps65910_gpio_probe()
150 tps65910_gpio->gpio_chip.ngpio); in tps65910_gpio_probe()
156 for (i = 0; i < tps65910_gpio->gpio_chip.ngpio; ++i) { in tps65910_gpio_probe()
168 return devm_gpiochip_add_data(&pdev->dev, &tps65910_gpio->gpio_chip, in tps65910_gpio_probe()