Lines Matching refs:gpio
14 #include <linux/gpio/driver.h>
102 dev_err(dev, "failed to deactivate gpio %u\n", which);
130 dev_warn(dev, "gpio %u direction was %u (should be 0 or 1)\n",
180 dev_err(dev, "failed to get value of gpio %u\n", which);
186 dev_warn(dev, "gpio %u value was %u (should be 0 or 1)\n",
201 dev_warn(dev, "refusing to set value of input gpio %u\n",
211 dev_err(dev, "failed to set value of gpio %u\n", which);
510 struct gpio_chip *gpio;
551 gpio = &ggc->chip;
553 gpio->label = "greybus_gpio";
554 gpio->parent = &gbphy_dev->dev;
555 gpio->owner = THIS_MODULE;
557 gpio->request = gb_gpio_request;
558 gpio->free = gb_gpio_free;
559 gpio->get_direction = gb_gpio_get_direction;
560 gpio->direction_input = gb_gpio_direction_input;
561 gpio->direction_output = gb_gpio_direction_output;
562 gpio->get = gb_gpio_get;
563 gpio->set = gb_gpio_set;
564 gpio->set_config = gb_gpio_set_config;
565 gpio->base = -1; /* Allocate base dynamically */
566 gpio->ngpio = ggc->line_max + 1;
567 gpio->can_sleep = true;
569 girq = &gpio->irq;
582 ret = gpiochip_add(gpio);
584 dev_err(&gbphy_dev->dev, "failed to add gpio chip: %d\n", ret);
627 .name = "gpio",