Lines Matching refs:ucb
45 struct ucb1400_gpio *ucb = dev_get_platdata(&dev->dev);
48 if (!(ucb && ucb->gpio_offset)) {
53 platform_set_drvdata(dev, ucb);
55 ucb->gc.label = "ucb1400_gpio";
56 ucb->gc.base = ucb->gpio_offset;
57 ucb->gc.ngpio = 10;
58 ucb->gc.owner = THIS_MODULE;
60 ucb->gc.direction_input = ucb1400_gpio_dir_in;
61 ucb->gc.direction_output = ucb1400_gpio_dir_out;
62 ucb->gc.get = ucb1400_gpio_get;
63 ucb->gc.set = ucb1400_gpio_set;
64 ucb->gc.can_sleep = true;
66 err = devm_gpiochip_add_data(&dev->dev, &ucb->gc, ucb);
70 if (ucb->gpio_setup)
71 err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio);
81 struct ucb1400_gpio *ucb = platform_get_drvdata(dev);
83 if (ucb && ucb->gpio_teardown) {
84 err = ucb->gpio_teardown(&dev->dev, ucb->gc.ngpio);