From bdf8e34b936e2b94990ab6ce8dd5463d14d173dd Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 14 Feb 2012 19:59:23 +0000 Subject: Create a single cmd_call() function to handle command execution We should aim for a single point of entry to the commands, whichever parser is used. Signed-off-by: Simon Glass --- include/command.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/command.h') diff --git a/include/command.h b/include/command.h index 3912b80cdd..6dc694f7a8 100644 --- a/include/command.h +++ b/include/command.h @@ -112,6 +112,8 @@ static inline int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd) #endif extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); +int cmd_call(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); + #endif /* __ASSEMBLY__ */ /* @@ -150,4 +152,5 @@ extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); #if defined(CONFIG_NEEDS_MANUAL_RELOC) void fixup_cmdtable(cmd_tbl_t *cmdtp, int size); #endif + #endif /* __COMMAND_H */ -- cgit v1.2.3