Lines Matching defs:gc
55 struct gpio_chip *gc;
59 gc = devm_kzalloc(&pdev->dev, sizeof(*gc), GFP_KERNEL);
60 if (!gc)
67 ret = bgpio_init(gc, &pdev->dev, 4, regs + GEF_GPIO_IN,
76 gc->label = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOF", pdev->dev.of_node);
77 if (!gc->label) {
82 gc->base = -1;
83 gc->ngpio = (u16)(uintptr_t)of_device_get_match_data(&pdev->dev);
84 gc->of_gpio_n_cells = 2;
85 gc->of_node = pdev->dev.of_node;
88 ret = devm_gpiochip_add_data(&pdev->dev, gc, NULL);