Advertisement
Guest User

Untitled

a guest
Aug 4th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. int gpio = of_get_gpio(np, 0);
  2. printk("\nGPIO ID = %d\n", gpio);
  3.  
  4. gpio_request_one(gpio, GPIOF_DIR_OUT, "vpower");
  5. gpio_set_value(gpio, 1);
  6. gpio_free(gpio);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement