Lines Matching defs:chip
20 struct gpio_chip chip;
24 static int lp873x_gpio_get_direction(struct gpio_chip *chip,
31 static int lp873x_gpio_direction_input(struct gpio_chip *chip,
38 static int lp873x_gpio_direction_output(struct gpio_chip *chip,
41 struct lp873x_gpio *gpio = gpiochip_get_data(chip);
49 static int lp873x_gpio_get(struct gpio_chip *chip, unsigned int offset)
51 struct lp873x_gpio *gpio = gpiochip_get_data(chip);
61 static void lp873x_gpio_set(struct gpio_chip *chip, unsigned int offset,
64 struct lp873x_gpio *gpio = gpiochip_get_data(chip);
146 gpio->chip = template_chip;
147 gpio->chip.parent = gpio->lp873->dev;
149 ret = devm_gpiochip_add_data(&pdev->dev, &gpio->chip, gpio);