summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-06-05 20:58:08 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-30 20:37:34 +0800
commit1fa17ad5d479714f46024c51a238b0f320b6e8d3 (patch)
treea6d92a82c68ed496ebd6232238e8fa30d810b4fa /drivers
parent9dfb0030ee60306bfd1e6e86560685c44bede9e7 (diff)
downloadbarebox-1fa17ad5d479714f46024c51a238b0f320b6e8d3.tar.gz
barebox-1fa17ad5d479714f46024c51a238b0f320b6e8d3.tar.xz
complete: add device name complete support for devinfo
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 9924fee8ac..547d6843a6 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -33,6 +33,7 @@
#include <errno.h>
#include <fs.h>
#include <linux/list.h>
+#include <complete.h>
LIST_HEAD(device_list);
EXPORT_SYMBOL(device_list);
@@ -443,6 +444,7 @@ BAREBOX_CMD_START(devinfo)
.cmd = do_devinfo,
.usage = "Show information about devices and drivers.",
BAREBOX_CMD_HELP(cmd_devinfo_help)
+ BAREBOX_CMD_COMPLETE(device_complete)
BAREBOX_CMD_END
#endif