Lines Matching defs:gc
114 struct gpio_chip gc;
345 struct ad7879 *ts = container_of(chip, struct ad7879, gc);
359 struct ad7879 *ts = container_of(chip, struct ad7879, gc);
378 struct ad7879 *ts = container_of(chip, struct ad7879, gc);
391 struct ad7879 *ts = container_of(chip, struct ad7879, gc);
411 ts->gc.direction_input = ad7879_gpio_direction_input;
412 ts->gc.direction_output = ad7879_gpio_direction_output;
413 ts->gc.get = ad7879_gpio_get_value;
414 ts->gc.set = ad7879_gpio_set_value;
415 ts->gc.can_sleep = 1;
416 ts->gc.base = pdata->gpio_base;
417 ts->gc.ngpio = 1;
418 ts->gc.label = "AD7879-GPIO";
419 ts->gc.owner = THIS_MODULE;
420 ts->gc.dev = ts->dev;
422 ret = gpiochip_add(&ts->gc);
425 ts->gc.base);
437 ret = gpiochip_remove(&ts->gc);
440 ts->gc.base);