]> git.baikalelectronics.ru Git - kernel.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)
commit6cf1b5fc4de81097e18e52a86fedf53385cf1ca6
tree5711139a2c8ac806edac04863d7f3e20df9facc3
parentd91594e00e41c5183bebbc9ef4831c948c7b95b1
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