aboutsummaryrefslogtreecommitdiff
path: root/tools/gpio/gpio-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-07tools: gpio: Print error string on IOCTL failuresJacopo Mondi1-7/+10
Add to error messages the error description by concatenating output of strerror() function to error messages print out by gpio-utils.c on IOCTL failures. Rationalize error messages, while at there, making all of them look the same. Signed-off-by: Jacopo Mondi <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2016-10-24tools/gpio: add gpio basic opereationsBamvor Jian Zhang1-0/+256
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 <[email protected]> Reviewed-by: Michael Welling <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2016-02-09tools/gpio: create GPIO toolsLinus Walleij1-0/+11
This creates GPIO tools under tools/gpio/* and adds a single example program to list the GPIOs on a system. When proper devices are created it provides this minimal output: Cc: Johan Hovold <[email protected]> Cc: Michael Welling <[email protected]> Cc: Markus Pargmann <[email protected]> Signed-off-by: Linus Walleij <[email protected]>