Lines Matching refs:gpio
9 #include <linux/gpio/driver.h>
37 struct tps65086_gpio *gpio = gpiochip_get_data(chip);
40 regmap_update_bits(gpio->tps->regmap, TPS65086_GPOCTRL,
48 struct tps65086_gpio *gpio = gpiochip_get_data(chip);
51 ret = regmap_read(gpio->tps->regmap, TPS65086_GPOCTRL, &val);
61 struct tps65086_gpio *gpio = gpiochip_get_data(chip);
63 regmap_update_bits(gpio->tps->regmap, TPS65086_GPOCTRL,
68 .label = "tps65086-gpio",
82 struct tps65086_gpio *gpio;
84 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL);
85 if (!gpio)
88 gpio->tps = dev_get_drvdata(pdev->dev.parent);
89 gpio->chip = template_chip;
90 gpio->chip.parent = gpio->tps->dev;
92 return devm_gpiochip_add_data(&pdev->dev, &gpio->chip, gpio);
96 { "tps65086-gpio", },
103 .name = "tps65086-gpio",