spl: Convert boot_device into a struct
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 00:19:57 +0000 (18:19 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 18:53:36 +0000 (14:53 -0400)
commitecdfd69a4be55363589e8185ff151b02e6c36cfa
treeb625ae78bfe96236f62320061a1a667f4d8e446d
parenta807ab33035fe2e9b63aac2e7475525ca8d90adc
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>
16 files changed:
arch/arm/mach-sunxi/board.c
arch/arm/mach-uniphier/boot-mode/spl_board.c
arch/sandbox/cpu/spl.c
common/spl/spl.c
common/spl/spl_mmc.c
common/spl/spl_nand.c
common/spl/spl_net.c
common/spl/spl_nor.c
common/spl/spl_onenand.c
common/spl/spl_sata.c
common/spl/spl_ubi.c
common/spl/spl_usb.c
common/spl/spl_ymodem.c
drivers/mtd/spi/spi_spl_load.c
drivers/mtd/spi/sunxi_spi_spl.c
include/spl.h