Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int gpio = of_get_gpio(np, 0);
- printk("\nGPIO ID = %d\n", gpio);
- gpio_request_one(gpio, GPIOF_DIR_OUT, "vpower");
- gpio_set_value(gpio, 1);
- gpio_free(gpio);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement