diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-19 13:55:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-19 22:23:56 +0200 |
commit | e275b2653f87dc6969b3c0baf6f0e7460c62a8db (patch) | |
tree | 59a870d2c340091d3a8546475992282d57ec306a /commands/of_property.c | |
parent | e5c59c386784d9c52505823ee293c94f633a8744 (diff) | |
download | barebox-e275b2653f87dc6969b3c0baf6f0e7460c62a8db.tar.gz barebox-e275b2653f87dc6969b3c0baf6f0e7460c62a8db.tar.xz |
complete: Add devicetree completion
The of_* commands take devicetree nodes as parameters. Add a
devicetree completion function to ease passing nodes to these
commands.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/of_property.c')
-rw-r--r-- | commands/of_property.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/of_property.c b/commands/of_property.c index f9f35b2e34..e0154fc394 100644 --- a/commands/of_property.c +++ b/commands/of_property.c @@ -24,6 +24,7 @@ #include <command.h> #include <fs.h> #include <malloc.h> +#include <complete.h> #include <linux/ctype.h> #include <asm/byteorder.h> #include <errno.h> @@ -317,5 +318,6 @@ BAREBOX_CMD_START(of_property) BAREBOX_CMD_DESC("handle device tree properties") BAREBOX_CMD_OPTS("[-sd] NODE [PROPERTY] [VALUES]") BAREBOX_CMD_GROUP(CMD_GRP_MISC) + BAREBOX_CMD_COMPLETE(devicetree_complete) BAREBOX_CMD_HELP(cmd_of_property_help) BAREBOX_CMD_END |