]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootm: Reduce arguments to boot_get_ramdisk()
authorSimon Glass <sjg@chromium.org>
Sat, 18 Nov 2023 21:05:06 +0000 (14:05 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:51:24 +0000 (11:51 -0500)
commit8eda15bc6a374a963ddf899d99088e40484d5276
tree5a3abcacd92abc4efdc14232b572276ac26df1ab
parent3e3bd5bda7e505dde45585e6c7c1e07cddcb641e
bootm: Reduce arguments to boot_get_ramdisk()

This function normally only uses one argument so pass it in directly.
Move comments to the header file so could one day include these
functions in API docs. Fix up the u8 argument while here, since it
avoids the compiler having to mask the value on some machines.

The Android case here is bit strange, since it can use argv[0], so deal
with that in the caller.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/bootm.c
boot/image-board.c
include/image.h