Lines Matching refs:tps6586x_gpio
25 struct tps6586x_gpio {
32 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc);
36 ret = tps6586x_read(tps6586x_gpio->parent, TPS6586X_GPIOSET2, &val);
46 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc);
48 tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET2,
55 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc);
63 return tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET1,
69 struct tps6586x_gpio *tps6586x_gpio = gpiochip_get_data(gc);
71 return tps6586x_irq_get_virq(tps6586x_gpio->parent,
78 struct tps6586x_gpio *tps6586x_gpio;
82 tps6586x_gpio = devm_kzalloc(&pdev->dev,
83 sizeof(*tps6586x_gpio), GFP_KERNEL);
84 if (!tps6586x_gpio)
87 tps6586x_gpio->parent = pdev->dev.parent;
89 tps6586x_gpio->gpio_chip.owner = THIS_MODULE;
90 tps6586x_gpio->gpio_chip.label = pdev->name;
91 tps6586x_gpio->gpio_chip.parent = &pdev->dev;
92 tps6586x_gpio->gpio_chip.ngpio = 4;
93 tps6586x_gpio->gpio_chip.can_sleep = true;
96 tps6586x_gpio->gpio_chip.direction_output = tps6586x_gpio_output;
97 tps6586x_gpio->gpio_chip.set = tps6586x_gpio_set;
98 tps6586x_gpio->gpio_chip.get = tps6586x_gpio_get;
99 tps6586x_gpio->gpio_chip.to_irq = tps6586x_gpio_to_irq;
102 tps6586x_gpio->gpio_chip.of_node = pdev->dev.parent->of_node;
105 tps6586x_gpio->gpio_chip.base = pdata->gpio_base;
107 tps6586x_gpio->gpio_chip.base = -1;
109 ret = devm_gpiochip_add_data(&pdev->dev, &tps6586x_gpio->gpio_chip,
110 tps6586x_gpio);
116 platform_set_drvdata(pdev, tps6586x_gpio);