Lines Matching refs:gc

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