Lines Matching defs:gc
39 struct gpio_chip gc;
56 static void mcu_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
58 struct mcu *mcu = container_of(gc, struct mcu, gc);
71 static int mcu_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
73 mcu_gpio_set(gc, gpio, val);
80 struct gpio_chip *gc = &mcu->gc;
86 gc->owner = THIS_MODULE;
87 gc->label = np->full_name;
88 gc->can_sleep = 1;
89 gc->ngpio = MCU_NUM_GPIO;
90 gc->base = -1;
91 gc->set = mcu_gpio_set;
92 gc->direction_output = mcu_gpio_dir_out;
93 gc->of_node = np;
95 return gpiochip_add(gc);
100 return gpiochip_remove(&mcu->gc);