Searched refs:tps6586x_gpio (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/gpio/ |
H A D | gpio-tps6586x.c | 36 struct tps6586x_gpio { struct 41 static inline struct tps6586x_gpio *to_tps6586x_gpio(struct gpio_chip *chip) to_tps6586x_gpio() 43 return container_of(chip, struct tps6586x_gpio, gpio_chip); to_tps6586x_gpio() 48 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); tps6586x_gpio_get() local 52 ret = tps6586x_read(tps6586x_gpio->parent, TPS6586X_GPIOSET2, &val); tps6586x_gpio_get() 62 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); tps6586x_gpio_set() local 64 tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET2, tps6586x_gpio_set() 71 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); tps6586x_gpio_output() local 79 return tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET1, tps6586x_gpio_output() 85 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); tps6586x_gpio_to_irq() local 87 return tps6586x_irq_get_virq(tps6586x_gpio->parent, tps6586x_gpio_to_irq() 94 struct tps6586x_gpio *tps6586x_gpio; tps6586x_gpio_probe() local 98 tps6586x_gpio = devm_kzalloc(&pdev->dev, tps6586x_gpio_probe() 99 sizeof(*tps6586x_gpio), GFP_KERNEL); tps6586x_gpio_probe() 100 if (!tps6586x_gpio) tps6586x_gpio_probe() 103 tps6586x_gpio->parent = pdev->dev.parent; tps6586x_gpio_probe() 105 tps6586x_gpio->gpio_chip.owner = THIS_MODULE; tps6586x_gpio_probe() 106 tps6586x_gpio->gpio_chip.label = pdev->name; tps6586x_gpio_probe() 107 tps6586x_gpio->gpio_chip.dev = &pdev->dev; tps6586x_gpio_probe() 108 tps6586x_gpio->gpio_chip.ngpio = 4; tps6586x_gpio_probe() 109 tps6586x_gpio->gpio_chip.can_sleep = true; tps6586x_gpio_probe() 112 tps6586x_gpio->gpio_chip.direction_output = tps6586x_gpio_output; tps6586x_gpio_probe() 113 tps6586x_gpio->gpio_chip.set = tps6586x_gpio_set; tps6586x_gpio_probe() 114 tps6586x_gpio->gpio_chip.get = tps6586x_gpio_get; tps6586x_gpio_probe() 115 tps6586x_gpio->gpio_chip.to_irq = tps6586x_gpio_to_irq; tps6586x_gpio_probe() 118 tps6586x_gpio->gpio_chip.of_node = pdev->dev.parent->of_node; tps6586x_gpio_probe() 121 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; tps6586x_gpio_probe() 123 tps6586x_gpio->gpio_chip.base = -1; tps6586x_gpio_probe() 125 ret = gpiochip_add(&tps6586x_gpio->gpio_chip); tps6586x_gpio_probe() 131 platform_set_drvdata(pdev, tps6586x_gpio); tps6586x_gpio_probe() 138 struct tps6586x_gpio *tps6586x_gpio = platform_get_drvdata(pdev); tps6586x_gpio_remove() local 140 gpiochip_remove(&tps6586x_gpio->gpio_chip); tps6586x_gpio_remove()
|
Completed in 79 milliseconds