extension: Refactor to allow non-command usage
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:48:12 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:41 +0000 (18:11 -0500)
commit35ce14617edb6ee7c3004c396f19d2c451255358
treee371ab4f9a66b4806c9e60be57c5e5c8ff4f1b33
parent43e89a306903117c8cb7105004f236acf1ec3d00
extension: Refactor to allow non-command usage

The current extension code is designed to be used from commands. We want
to add a boot driver which uses it. To help with this, split the code into
the command processing and a function which actually does the scan.

Really the extension code should be in common/ or use driver model, but
this is a start.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/extension_board.c