Lines Matching refs:gpio
18 #include <linux/gpio/consumer.h>
19 #include <linux/gpio/machine.h>
222 struct gpio_desc *gpio;
246 * put the gpio descriptors again here because the phy driver
249 gpio = gpiod_get_optional(&pdev->dev, "cs", GPIOD_OUT_LOW);
250 if (IS_ERR(gpio))
251 return PTR_ERR(gpio);
253 gpiod_set_value_cansleep(gpio, 1);
254 gpiod_put(gpio);
256 gpio = gpiod_get_optional(&pdev->dev, "reset", GPIOD_OUT_LOW);
257 if (IS_ERR(gpio))
258 return PTR_ERR(gpio);
260 if (gpio) {
261 gpiod_set_value_cansleep(gpio, 1);
262 gpiod_put(gpio);