diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-25 00:19:57 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 18:53:36 (GMT) |
commit | ecdfd69a4be55363589e8185ff151b02e6c36cfa (patch) | |
tree | b625ae78bfe96236f62320061a1a667f4d8e446d /common/spl/spl_ymodem.c | |
parent | a807ab33035fe2e9b63aac2e7475525ca8d90adc (diff) | |
download | u-boot-ecdfd69a4be55363589e8185ff151b02e6c36cfa.tar.xz |
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>
Diffstat (limited to 'common/spl/spl_ymodem.c')
-rw-r--r-- | common/spl/spl_ymodem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c index 1323b6f..d82b138 100644 --- a/common/spl/spl_ymodem.c +++ b/common/spl/spl_ymodem.c @@ -68,7 +68,7 @@ static ulong ymodem_read_fit(struct spl_load_info *load, ulong offset, return size; } -int spl_ymodem_load_image(void) +int spl_ymodem_load_image(struct spl_boot_device *bootdev) { int size = 0; int err; |