spl: Convert spl_usb_load_image() to use linker list
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 00:20:06 +0000 (18:20 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 19:07:29 +0000 (15:07 -0400)
commit56df46351ad56551f8ea7e54d217ea6b709e686c
treec09a75c375816ec291bdbf6bf8ae8387cc56d8d0
parentdd6bf9025c2fd8ef0860e6e3ff4c12bc202fc64a
spl: Convert spl_usb_load_image() to use linker list

Add a linker list declaration for this method and remove the explicit
switch() code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl.c
common/spl/spl_usb.c
include/spl.h