mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02:00
spl: Convert boot_device into a struct
At present some spl_xxx_load_image() functions take a parameter and some don't. Of those that do, most take an integer but one takes a string. Convert this parameter into a struct so that we can pass all functions the same thing. This will allow us to use a common function signature. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -22,7 +22,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
static int usb_stor_curr_dev = -1; /* current device */
|
||||
#endif
|
||||
|
||||
int spl_usb_load_image(void)
|
||||
int spl_usb_load_image(struct spl_boot_device *bootdev)
|
||||
{
|
||||
int err;
|
||||
struct blk_desc *stor_dev;
|
||||
|
Reference in New Issue
Block a user