[PATCH 05/34] doc: add documentation for 'usb' command

Robert Schwebel r.schwebel at pengutronix.de
Wed Dec 15 06:51:19 EST 2010


Signed-off-by: Robert Schwebel <r.schwebel at pengutronix.de>
---
 Documentation/commands.dox |    2 +-
 drivers/usb/core/usb.c     |   14 +++++++++++---
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/Documentation/commands.dox b/Documentation/commands.dox
index 07ae9d2..d5536d3 100644
--- a/Documentation/commands.dox
+++ b/Documentation/commands.dox
@@ -105,7 +105,7 @@ available in @a Barebox:
 @li @subpage umount_command
 @li @subpage unlzo_command
 @li @subpage unprotect_command
- at li @subpage usb
+ at li @subpage usb_command
 @li @subpage version_command
 
 */
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 76e033e..38042a5 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -488,9 +488,17 @@ static int do_usb(struct command *cmdtp, int argc, char *argv[])
 	return 0;
 }
 
-static const __maybe_unused char cmd_usb_help[] =
-"Usage: usb\n"
-"(re-)detect USB devices\n";
+BAREBOX_CMD_HELP_START(usb)
+BAREBOX_CMD_HELP_USAGE("usb\n")
+BAREBOX_CMD_HELP_SHORT("(re-)detect USB devices.\n")
+BAREBOX_CMD_HELP_END
+
+/**
+ * @page usb_command
+
+\todo add examples
+
+ */
 
 BAREBOX_CMD_START(usb)
 	.cmd		= do_usb,
-- 
1.7.2.3




More information about the barebox mailing list