mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
spl: Pass spl_image as a parameter to load_image() methods
Rather than having a global variable, pass the spl_image as a parameter. This avoids BSS use, and makes it clearer what the function is actually doing. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
97d9df0a91
commit
2a2ee2ac35
15 changed files with 110 additions and 82 deletions
|
@ -160,9 +160,11 @@ struct spl_image_loader {
|
|||
/**
|
||||
* load_image() - Load an SPL image
|
||||
*
|
||||
* @spl_image: place to put image information
|
||||
* @bootdev: describes the boot device to load from
|
||||
*/
|
||||
int (*load_image)(struct spl_boot_device *bootdev);
|
||||
int (*load_image)(struct spl_image_info *spl_image,
|
||||
struct spl_boot_device *bootdev);
|
||||
};
|
||||
|
||||
/* Declare an SPL image loader */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue