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