summaryrefslogtreecommitdiffstats
path: root/tools/gpio/gpio-utils.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-10-21 15:45:54 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-02-09 11:09:48 +0100
commit6d591c46bce037696d173bd5c8461b2b4bb680ad (patch)
tree5b7d5e0004de27d1451f38e3e1ddf99837e5d615 /tools/gpio/gpio-utils.c
parentgpio: add a userspace chardev ABI for GPIOs (diff)
downloadlinux-6d591c46bce037696d173bd5c8461b2b4bb680ad.tar.xz
linux-6d591c46bce037696d173bd5c8461b2b4bb680ad.zip
tools/gpio: create GPIO tools
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 <johan@kernel.org> Cc: Michael Welling <mwelling@ieee.org> Cc: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/gpio/gpio-utils.c')
-rw-r--r--tools/gpio/gpio-utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/gpio/gpio-utils.c b/tools/gpio/gpio-utils.c
new file mode 100644
index 000000000000..8208718f2c99
--- /dev/null
+++ b/tools/gpio/gpio-utils.c
@@ -0,0 +1,11 @@
+/*
+ * GPIO tools - helpers library for the GPIO tools
+ *
+ * Copyright (C) 2015 Linus Walleij
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ */
+
+#include "gpio-utils.h"