Lines Matching defs:gpio
18 #include <linux/gpio/consumer.h>
19 #include <linux/gpio/machine.h>
161 struct gpio_desc *gpio;
185 * put the gpio descriptors again here because the phy driver
188 gpio = gpiod_get_optional(&pdev->dev, "cs", GPIOD_OUT_LOW);
189 if (IS_ERR(gpio))
190 return PTR_ERR(gpio);
192 gpiod_set_value_cansleep(gpio, 1);
193 gpiod_put(gpio);
195 gpio = gpiod_get_optional(&pdev->dev, "reset", GPIOD_OUT_LOW);
196 if (IS_ERR(gpio))
197 return PTR_ERR(gpio);
199 if (gpio) {
200 gpiod_set_value_cansleep(gpio, 1);
201 gpiod_put(gpio);