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)
123 tps65910_gpio->gpio_chip.owner = THIS_MODULE;
124 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name;
128 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO;
131 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO;
136 tps65910_gpio->gpio_chip.can_sleep = true;
137 tps65910_gpio->gpio_chip.direction_input = tps65910_gpio_input;
138 tps65910_gpio->gpio_chip.direction_output = tps65910_gpio_output;
139 tps65910_gpio->gpio_chip.set = tps65910_gpio_set;
140 tps65910_gpio->gpio_chip.get = tps65910_gpio_get;
141 tps65910_gpio->gpio_chip.parent = &pdev->dev;
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 return devm_gpiochip_add_data(&pdev->dev, &tps65910_gpio->gpio_chip,