bootstd: Drop the bootdev-specific list of bootflows
This list is only used by two functions, which can be updated to iterate through the global list. Take this approach, which allows the bootdev list to be dropped. Overall this makes the code slightly more complicated, but will allow moving the bootflow list into an alist Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -56,12 +56,10 @@ enum bootflow_flags_t {
|
||||
/**
|
||||
* struct bootflow - information about a bootflow
|
||||
*
|
||||
* This is connected into two separate linked lists:
|
||||
* This is connected into a linked list:
|
||||
*
|
||||
* bm_sibling - links all bootflows in the same bootdev
|
||||
* glob_sibling - links all bootflows in all bootdevs
|
||||
*
|
||||
* @bm_node: Points to siblings in the same bootdev
|
||||
* @glob_node: Points to siblings in the global list (all bootdev)
|
||||
* @dev: Bootdev device which produced this bootflow, NULL for flows created by
|
||||
* BOOTMETHF_GLOBAL bootmeths
|
||||
@@ -92,7 +90,6 @@ enum bootflow_flags_t {
|
||||
* @bootmeth_priv: Private data for the bootmeth
|
||||
*/
|
||||
struct bootflow {
|
||||
struct list_head bm_node;
|
||||
struct list_head glob_node;
|
||||
struct udevice *dev;
|
||||
struct udevice *blk;
|
||||
|
Reference in New Issue
Block a user