bootstd: Add a default method to get bootflows
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:26 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
commitb85fc8dbabd7c027ad7ad6133578a0d679dbe2ba
tree6aae549dcbc09ceff6dcbef7c88f84853b0e288b
parent3a2cb96e5dde427ccb670640a6a5fa1d61519a9b
bootstd: Add a default method to get bootflows

The code in these functions turns out to often be the same. Add a default
get_bootflow() function and allow the drivers to select it by setting
the method to NULL.

This saves a little code space.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c
drivers/mmc/mmc_bootdev.c
drivers/usb/host/usb_bootdev.c
include/bootdev.h