Lines Matching defs:gpio
12 #include <linux/gpio/driver.h>
26 struct tps65912_gpio *gpio = gpiochip_get_data(gc);
30 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val);
42 struct tps65912_gpio *gpio = gpiochip_get_data(gc);
44 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset,
51 struct tps65912_gpio *gpio = gpiochip_get_data(gc);
54 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset,
57 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset,
63 struct tps65912_gpio *gpio = gpiochip_get_data(gc);
66 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val);
79 struct tps65912_gpio *gpio = gpiochip_get_data(gc);
81 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset,
86 .label = "tps65912-gpio",
101 struct tps65912_gpio *gpio;
103 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL);
104 if (!gpio)
107 gpio->tps = dev_get_drvdata(pdev->dev.parent);
108 gpio->gpio_chip = template_chip;
109 gpio->gpio_chip.parent = tps->dev;
111 return devm_gpiochip_add_data(&pdev->dev, &gpio->gpio_chip, gpio);
115 { "tps65912-gpio", },
122 .name = "tps65912-gpio",