vb_gpio 388 drivers/gpio/gpio-viperboard.c struct vprbrd_gpio *vb_gpio; vb_gpio 391 drivers/gpio/gpio-viperboard.c vb_gpio = devm_kzalloc(&pdev->dev, sizeof(*vb_gpio), GFP_KERNEL); vb_gpio 392 drivers/gpio/gpio-viperboard.c if (vb_gpio == NULL) vb_gpio 395 drivers/gpio/gpio-viperboard.c vb_gpio->vb = vb; vb_gpio 397 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.label = "viperboard gpio a"; vb_gpio 398 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.parent = &pdev->dev; vb_gpio 399 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.owner = THIS_MODULE; vb_gpio 400 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.base = -1; vb_gpio 401 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.ngpio = 16; vb_gpio 402 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.can_sleep = true; vb_gpio 403 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.set = vprbrd_gpioa_set; vb_gpio 404 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.get = vprbrd_gpioa_get; vb_gpio 405 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.direction_input = vprbrd_gpioa_direction_input; vb_gpio 406 drivers/gpio/gpio-viperboard.c vb_gpio->gpioa.direction_output = vprbrd_gpioa_direction_output; vb_gpio 407 drivers/gpio/gpio-viperboard.c ret = devm_gpiochip_add_data(&pdev->dev, &vb_gpio->gpioa, vb_gpio); vb_gpio 409 drivers/gpio/gpio-viperboard.c dev_err(vb_gpio->gpioa.parent, "could not add gpio a"); vb_gpio 414 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.label = "viperboard gpio b"; vb_gpio 415 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.parent = &pdev->dev; vb_gpio 416 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.owner = THIS_MODULE; vb_gpio 417 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.base = -1; vb_gpio 418 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.ngpio = 16; vb_gpio 419 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.can_sleep = true; vb_gpio 420 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.set = vprbrd_gpiob_set; vb_gpio 421 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.get = vprbrd_gpiob_get; vb_gpio 422 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.direction_input = vprbrd_gpiob_direction_input; vb_gpio 423 drivers/gpio/gpio-viperboard.c vb_gpio->gpiob.direction_output = vprbrd_gpiob_direction_output; vb_gpio 424 drivers/gpio/gpio-viperboard.c ret = devm_gpiochip_add_data(&pdev->dev, &vb_gpio->gpiob, vb_gpio); vb_gpio 426 drivers/gpio/gpio-viperboard.c dev_err(vb_gpio->gpiob.parent, "could not add gpio b"); vb_gpio 430 drivers/gpio/gpio-viperboard.c platform_set_drvdata(pdev, vb_gpio);