Lines Matching refs:gc

36 	struct gpio_chip gc;
40 static int max77650_gpio_direction_input(struct gpio_chip *gc,
43 struct max77650_gpio_chip *chip = gpiochip_get_data(gc);
51 static int max77650_gpio_direction_output(struct gpio_chip *gc,
54 struct max77650_gpio_chip *chip = gpiochip_get_data(gc);
65 static void max77650_gpio_set_value(struct gpio_chip *gc,
68 struct max77650_gpio_chip *chip = gpiochip_get_data(gc);
76 dev_err(gc->parent, "cannot set GPIO value: %d\n", rv);
79 static int max77650_gpio_get_value(struct gpio_chip *gc,
82 struct max77650_gpio_chip *chip = gpiochip_get_data(gc);
93 static int max77650_gpio_get_direction(struct gpio_chip *gc,
96 struct max77650_gpio_chip *chip = gpiochip_get_data(gc);
107 static int max77650_gpio_set_config(struct gpio_chip *gc,
110 struct max77650_gpio_chip *chip = gpiochip_get_data(gc);
133 static int max77650_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
135 struct max77650_gpio_chip *chip = gpiochip_get_data(gc);
162 chip->gc.base = -1;
163 chip->gc.ngpio = 1;
164 chip->gc.label = i2c->name;
165 chip->gc.parent = dev;
166 chip->gc.owner = THIS_MODULE;
167 chip->gc.can_sleep = true;
169 chip->gc.direction_input = max77650_gpio_direction_input;
170 chip->gc.direction_output = max77650_gpio_direction_output;
171 chip->gc.set = max77650_gpio_set_value;
172 chip->gc.get = max77650_gpio_get_value;
173 chip->gc.get_direction = max77650_gpio_get_direction;
174 chip->gc.set_config = max77650_gpio_set_config;
175 chip->gc.to_irq = max77650_gpio_to_irq;
177 return devm_gpiochip_add_data(dev, &chip->gc, chip);