dfu: Refactor do_dfu() to handle optional argument
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 27 Nov 2019 16:12:14 +0000 (18:12 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 7 Jan 2020 13:37:50 +0000 (14:37 +0100)
commit2b1f8c2bdfe5f874233df221f037e1494bb8f875
treeb9bbc599ed539f5ca28926b91cf84439635442ec
parentfdba54ea2f09b8c62007a3407f461aefb2e839f8
dfu: Refactor do_dfu() to handle optional argument

In the future we may utilize optional argument in 'dfu' command line.
As a preparation for this, refactor do_dfu().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
cmd/dfu.c