]> git.karo-electronics.de Git - linux-beck.git/commit
tools/gpio: add gpio basic opereations
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Fri, 14 Oct 2016 02:48:25 +0000 (10:48 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Oct 2016 14:33:11 +0000 (16:33 +0200)
commite1acec0e750012edb2a2122b397a40f783c2aa1e
tree5711139a2c8ac806edac04863d7f3e20df9facc3
parent26a48c4cc2f15d516513e4a980a8a63a21aff018
tools/gpio: add gpio basic opereations

Add basic gpio operations. User could get/set gpio value for specific
line of gpiochip.

Reference "tools/gpio/gpio-hammer.c" or
"tools/testing/selftest/gpio/gpio-mockup-chardev.c" for how to use it.

Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Reviewed-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
tools/gpio/gpio-utils.c
tools/gpio/gpio-utils.h