Lines Matching refs:ucb
49 struct ucb1400_gpio *ucb = dev_get_platdata(&dev->dev); in ucb1400_gpio_probe() local
52 if (!(ucb && ucb->gpio_offset)) { in ucb1400_gpio_probe()
57 platform_set_drvdata(dev, ucb); in ucb1400_gpio_probe()
59 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe()
60 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe()
61 ucb->gc.ngpio = 10; in ucb1400_gpio_probe()
62 ucb->gc.owner = THIS_MODULE; in ucb1400_gpio_probe()
64 ucb->gc.direction_input = ucb1400_gpio_dir_in; in ucb1400_gpio_probe()
65 ucb->gc.direction_output = ucb1400_gpio_dir_out; in ucb1400_gpio_probe()
66 ucb->gc.get = ucb1400_gpio_get; in ucb1400_gpio_probe()
67 ucb->gc.set = ucb1400_gpio_set; in ucb1400_gpio_probe()
68 ucb->gc.can_sleep = true; in ucb1400_gpio_probe()
70 err = devm_gpiochip_add_data(&dev->dev, &ucb->gc, ucb); in ucb1400_gpio_probe()
74 if (ucb->gpio_setup) in ucb1400_gpio_probe()
75 err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio); in ucb1400_gpio_probe()
85 struct ucb1400_gpio *ucb = platform_get_drvdata(dev); in ucb1400_gpio_remove() local
87 if (ucb && ucb->gpio_teardown) { in ucb1400_gpio_remove()
88 err = ucb->gpio_teardown(&dev->dev, ucb->gc.ngpio); in ucb1400_gpio_remove()