Lines Matching refs:gc
114 struct gpio_chip gc; member
382 struct ad7879 *ts = container_of(chip, struct ad7879, gc); in ad7879_gpio_direction_input()
396 struct ad7879 *ts = container_of(chip, struct ad7879, gc); in ad7879_gpio_direction_output()
415 struct ad7879 *ts = container_of(chip, struct ad7879, gc); in ad7879_gpio_get_value()
428 struct ad7879 *ts = container_of(chip, struct ad7879, gc); in ad7879_gpio_set_value()
448 ts->gc.direction_input = ad7879_gpio_direction_input; in ad7879_gpio_add()
449 ts->gc.direction_output = ad7879_gpio_direction_output; in ad7879_gpio_add()
450 ts->gc.get = ad7879_gpio_get_value; in ad7879_gpio_add()
451 ts->gc.set = ad7879_gpio_set_value; in ad7879_gpio_add()
452 ts->gc.can_sleep = 1; in ad7879_gpio_add()
453 ts->gc.base = pdata->gpio_base; in ad7879_gpio_add()
454 ts->gc.ngpio = 1; in ad7879_gpio_add()
455 ts->gc.label = "AD7879-GPIO"; in ad7879_gpio_add()
456 ts->gc.owner = THIS_MODULE; in ad7879_gpio_add()
457 ts->gc.dev = ts->dev; in ad7879_gpio_add()
459 ret = gpiochip_add(&ts->gc); in ad7879_gpio_add()
462 ts->gc.base); in ad7879_gpio_add()
473 gpiochip_remove(&ts->gc); in ad7879_gpio_remove()