Lines Matching defs:gchip
526 struct gpio_chip *gchip;
538 gchip = &spp_gchip->chip;
539 gchip->label = SPPCTL_MODULE_NAME;
540 gchip->parent = &pdev->dev;
541 gchip->owner = THIS_MODULE;
542 gchip->request = gpiochip_generic_request;
543 gchip->free = gpiochip_generic_free;
544 gchip->get_direction = sppctl_gpio_get_direction;
545 gchip->direction_input = sppctl_gpio_direction_input;
546 gchip->direction_output = sppctl_gpio_direction_output;
547 gchip->get = sppctl_gpio_get;
548 gchip->set = sppctl_gpio_set;
549 gchip->set_config = sppctl_gpio_set_config;
550 gchip->dbg_show = IS_ENABLED(CONFIG_DEBUG_FS) ?
552 gchip->base = -1;
553 gchip->ngpio = sppctl_gpio_list_sz;
554 gchip->names = sppctl_gpio_list_s;
556 pctl->pctl_grange.npins = gchip->ngpio;
557 pctl->pctl_grange.name = gchip->label;
558 pctl->pctl_grange.gc = gchip;
560 err = devm_gpiochip_add_data(&pdev->dev, gchip, spp_gchip);