commit | 0e71f80dd7b40d9ea06d1fbb96a14282f2dddd78 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Sun Apr 03 04:40:46 2011 -0400 |
committer | Mike Frysinger <vapier@gentoo.org> | Wed Apr 13 15:56:51 2011 -0400 |
tree | f4de82746e7225b8c1cf1faf0306b718d5827302 | |
parent | a2274903e076f97a5b8aacf9ada301ba54e3ff14 [diff] |
gpio: generalize for all generic gpio providers The Blackfin gpio command isn't terribly Blackfin-specific. So generalize the few pieces into two new optional helpers: name_to_gpio() - turn a string name into a GPIO # gpio_status() - display current pin bindings (think /proc/gpio) Once these pieces are pulled out, we can relocate the cmd_gpio.c into the common directory. Signed-off-by: Mike Frysinger <vapier@gentoo.org>