Lines Matching refs:gpio_chip
18 struct gpio_chip gpio_chip; member
126 static int max77620_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_dir_input()
140 static int max77620_gpio_get(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_get()
158 static int max77620_gpio_dir_output(struct gpio_chip *gc, unsigned int offset, in max77620_gpio_dir_output()
217 static void max77620_gpio_set(struct gpio_chip *gc, unsigned int offset, in max77620_gpio_set()
233 static int max77620_gpio_set_config(struct gpio_chip *gc, unsigned int offset, in max77620_gpio_set_config()
257 static int max77620_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_to_irq()
283 mgpio->gpio_chip.label = pdev->name; in max77620_gpio_probe()
284 mgpio->gpio_chip.parent = &pdev->dev; in max77620_gpio_probe()
285 mgpio->gpio_chip.direction_input = max77620_gpio_dir_input; in max77620_gpio_probe()
286 mgpio->gpio_chip.get = max77620_gpio_get; in max77620_gpio_probe()
287 mgpio->gpio_chip.direction_output = max77620_gpio_dir_output; in max77620_gpio_probe()
288 mgpio->gpio_chip.set = max77620_gpio_set; in max77620_gpio_probe()
289 mgpio->gpio_chip.set_config = max77620_gpio_set_config; in max77620_gpio_probe()
290 mgpio->gpio_chip.to_irq = max77620_gpio_to_irq; in max77620_gpio_probe()
291 mgpio->gpio_chip.ngpio = MAX77620_GPIO_NR; in max77620_gpio_probe()
292 mgpio->gpio_chip.can_sleep = 1; in max77620_gpio_probe()
293 mgpio->gpio_chip.base = -1; in max77620_gpio_probe()
295 mgpio->gpio_chip.of_node = pdev->dev.parent->of_node; in max77620_gpio_probe()
300 ret = devm_gpiochip_add_data(&pdev->dev, &mgpio->gpio_chip, mgpio); in max77620_gpio_probe()