Lines Matching refs:gpio_chip
34 struct gpio_chip gpio_chip; member
198 static int ts5500_gpio_input(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_input()
217 static int ts5500_gpio_get(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_get()
225 static int ts5500_gpio_output(struct gpio_chip *chip, unsigned offset, int val) in ts5500_gpio_output()
247 static void ts5500_gpio_set(struct gpio_chip *chip, unsigned offset, int val) in ts5500_gpio_set()
261 static int ts5500_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_to_irq()
309 dev_err(priv->gpio_chip.parent, "invalid hwirq %d\n", in ts5500_disable_irq()
335 priv->gpio_chip.owner = THIS_MODULE; in ts5500_dio_probe()
336 priv->gpio_chip.label = name; in ts5500_dio_probe()
337 priv->gpio_chip.parent = dev; in ts5500_dio_probe()
338 priv->gpio_chip.direction_input = ts5500_gpio_input; in ts5500_dio_probe()
339 priv->gpio_chip.direction_output = ts5500_gpio_output; in ts5500_dio_probe()
340 priv->gpio_chip.get = ts5500_gpio_get; in ts5500_dio_probe()
341 priv->gpio_chip.set = ts5500_gpio_set; in ts5500_dio_probe()
342 priv->gpio_chip.to_irq = ts5500_gpio_to_irq; in ts5500_dio_probe()
343 priv->gpio_chip.base = -1; in ts5500_dio_probe()
348 priv->gpio_chip.ngpio = ARRAY_SIZE(ts5500_dio1); in ts5500_dio_probe()
357 priv->gpio_chip.ngpio = ARRAY_SIZE(ts5500_dio2); in ts5500_dio_probe()
377 priv->gpio_chip.ngpio = ARRAY_SIZE(ts5500_lcd); in ts5500_dio_probe()
400 ret = devm_gpiochip_add_data(dev, &priv->gpio_chip, priv); in ts5500_dio_probe()