Lines Matching defs:gc
80 struct gpio_chip gc;
105 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc);
115 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc);
134 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc);
152 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc);
211 kpad->gc.ngpio = adp5588_build_gpiomap(kpad, pdata);
212 if (kpad->gc.ngpio == 0) {
219 kpad->gc.direction_input = adp5588_gpio_direction_input;
220 kpad->gc.direction_output = adp5588_gpio_direction_output;
221 kpad->gc.get = adp5588_gpio_get_value;
222 kpad->gc.set = adp5588_gpio_set_value;
223 kpad->gc.can_sleep = 1;
225 kpad->gc.base = gpio_data->gpio_start;
226 kpad->gc.label = kpad->client->name;
227 kpad->gc.owner = THIS_MODULE;
231 error = gpiochip_add(&kpad->gc);
245 kpad->gc.base, kpad->gc.ngpio,
266 kpad->gc.base, kpad->gc.ngpio,
272 error = gpiochip_remove(&kpad->gc);