mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
3a2cb96e5d
commit
b85fc8dbab
4 changed files with 29 additions and 52 deletions
|
@ -50,7 +50,10 @@ struct bootdev_uc_plat {
|
|||
/** struct bootdev_ops - Operations for the bootdev uclass */
|
||||
struct bootdev_ops {
|
||||
/**
|
||||
* get_bootflow() - get a bootflow
|
||||
* get_bootflow() - get a bootflow (optional)
|
||||
*
|
||||
* If this is NULL then the default implementaton is used, which is
|
||||
* default_get_bootflow()
|
||||
*
|
||||
* @dev: Bootflow device to check
|
||||
* @iter: Provides current dev, part, method to get. Should update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue