diff options
| author | Simon Glass <[email protected]> | 2024-11-15 16:19:09 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-01-15 08:48:42 -0600 |
| commit | 92182257733b446f3074a8a9b0a7eafea6ea8c1c (patch) | |
| tree | 19ddbe4e6a45f3aafed8a2bf2515a12aff25788a /include/bootstd.h | |
| parent | 47903aacc520c96bafae1225484e5df740a233e6 (diff) | |
bootstd: Move bootflow-clearing to bootstd
This relates to more than just the bootdev, since there is a global list
of bootflows. Move the function to the bootstd file and rename it.
Signed-off-by: Simon Glass <[email protected]>
Acked-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include/bootstd.h')
| -rw-r--r-- | include/bootstd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bootstd.h b/include/bootstd.h index 3fc93a4ec2e..4220ece785d 100644 --- a/include/bootstd.h +++ b/include/bootstd.h @@ -122,4 +122,14 @@ int bootstd_prog_boot(void); */ int bootstd_add_bootflow(struct bootflow *bflow); +/** + * bootstd_clear_bootflows_for_bootdev() - Clear bootflows from a bootdev + * + * Each bootdev maintains a list of discovered bootflows. This provides a + * way to clear it. These bootflows are removed from the global list too. + * + * @dev: bootdev device to update + */ +int bootstd_clear_bootflows_for_bootdev(struct udevice *dev); + #endif |
