Expose command table search for sub-commands
authorKumar Gala <galak@kernel.crashing.org>
Tue, 23 Sep 2008 15:05:02 +0000 (10:05 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:02 +0000 (21:54 +0200)
commitb799cb4c0eebb0762e91e9653d8b9cc9a98440e3
tree849320dadf7caf2347e5a33450285f6c0c8f1b47
parentf7e51b27508446f8cae3927975817137979ad5e8
Expose command table search for sub-commands

Sub-command can benefit from using the same table and search functions
that top level commands have.  Expose this functionality by refactoring
find_cmd() and introducing find_cmd_tbl() that sub-command processing
can call.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
common/command.c
include/command.h