summaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-25 00:20:13 (GMT)
committerTom Rini <trini@konsulko.com>2016-10-06 19:08:52 (GMT)
commit2a2ee2ac35f26f6b4dae11a225c2803291dff10e (patch)
treecdb362cf377e85a635bb54dc7bf7f54991914cd3 /include/spl.h
parent97d9df0a91f1c68695913518d8dfaf26c41dbb32 (diff)
downloadu-boot-fsl-qoriq-2a2ee2ac35f26f6b4dae11a225c2803291dff10e.tar.xz
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>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/spl.h b/include/spl.h
index 895240d..dd1d609 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -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 */