Lines Matching refs:ucb
46 struct ucb1400_gpio *ucb = dev_get_platdata(&dev->dev); in ucb1400_gpio_probe() local
49 if (!(ucb && ucb->gpio_offset)) { in ucb1400_gpio_probe()
54 platform_set_drvdata(dev, ucb); in ucb1400_gpio_probe()
56 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe()
57 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe()
58 ucb->gc.ngpio = 10; in ucb1400_gpio_probe()
59 ucb->gc.owner = THIS_MODULE; in ucb1400_gpio_probe()
61 ucb->gc.direction_input = ucb1400_gpio_dir_in; in ucb1400_gpio_probe()
62 ucb->gc.direction_output = ucb1400_gpio_dir_out; in ucb1400_gpio_probe()
63 ucb->gc.get = ucb1400_gpio_get; in ucb1400_gpio_probe()
64 ucb->gc.set = ucb1400_gpio_set; in ucb1400_gpio_probe()
65 ucb->gc.can_sleep = true; in ucb1400_gpio_probe()
67 err = devm_gpiochip_add_data(&dev->dev, &ucb->gc, ucb); in ucb1400_gpio_probe()