Lines Matching defs: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;
85 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL);
86 if (!gpio)
89 platform_set_drvdata(pdev, gpio);
91 gpio->tps = dev_get_drvdata(pdev->dev.parent);
92 gpio->chip = template_chip;
93 gpio->chip.parent = gpio->tps->dev;
95 ret = gpiochip_add_data(&gpio->chip, gpio);
106 struct tps65086_gpio *gpio = platform_get_drvdata(pdev);
108 gpiochip_remove(&gpio->chip);
114 { "tps65086-gpio", },
121 .name = "tps65086-gpio",