Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Mery <amery@geeks.cl>2012-07-23 19:06:41 +0400
committerAlejandro Mery <amery@geeks.cl>2012-07-23 19:07:28 +0400
commitdbc4515eedc036a36a3efaecae376cbaecf43454 (patch)
treeaf6cac6cc7be8ec398d34cfe389f217cb2467d9a /script_bin.c
parent815691218af8021f411eb616c073b34a8e65eab6 (diff)
fexc: add port:power support
Diffstat (limited to 'script_bin.c')
-rw-r--r--script_bin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/script_bin.c b/script_bin.c
index 30d4616..752f519 100644
--- a/script_bin.c
+++ b/script_bin.c
@@ -253,8 +253,10 @@ static int decompile_section(void *bin, size_t UNUSED(bin_size),
if (words != 6) {
pr_err("%s: %s.%s: invalid length %d (assuming %d)\n",
filename, section->name, entry->name, words, 6);
+ } else if (gpio->port == 0xffff) {
+ ; /* port:power */
} else if (gpio->port < 1 || gpio->port > 10) {
- pr_err("%s: %s.%s: unknown GPIO port type %d\n",
+ pr_err("%s: %s.%s: unknown GPIO port type %u\n",
filename, section->name, entry->name, gpio->port);
goto failure;
}