bootstd: Drop the old bootflow_scan_first()

This function is not used outside tests. Drop it and rename
bootflow_scan_dev() since it is how we start a scan now.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-01-17 10:48:16 -07:00
committed by Tom Rini
parent 91943ff703
commit 4b7cb058df
5 changed files with 19 additions and 45 deletions

View File

@@ -161,7 +161,7 @@ static int do_bootflow_scan(struct cmd_tbl *cmdtp, int flag, int argc,
else
bootstd_clear_glob();
for (i = 0,
ret = bootflow_scan_bootdev(dev, label, &iter, flags, &bflow);
ret = bootflow_scan_first(dev, label, &iter, flags, &bflow);
i < 1000 && ret != -ENODEV;
i++, ret = bootflow_scan_next(&iter, &bflow)) {
bflow.err = ret;