]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
spl: spl_mmc: Clearer structure in spl_mmc_load_image and cosmetics
authorPaul Kocialkowski <contact@paulk.fr>
Mon, 27 Apr 2015 08:20:22 +0000 (10:20 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:38:42 +0000 (22:38 +0200)
commit7b397ecc75ccead5d93c347a82ebde5df15bf510
tree36a59dc993fef6362a6fd5829a2bf7ebd677ec13
parent644cccf7b638f6f672fa7c09f74e72f27eee7238
spl: spl_mmc: Clearer structure in spl_mmc_load_image and cosmetics

This refactors spl_mmc_load_image to use a switch/case structure and easier
to understand spl_start_uboot checks. This also introduces some more automatic
fallback on the next mmc boot mode as long as it keeps failing.

Lines that go beyond 80 chars are also reduced by reducing the number of tabs.
Debug and error strings are refctored to match a common style.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
[trini: Fix a thinko in the SPL_EXT_SUPPORT + SPL_OS conversion, make part be
 __maybe_unused]
Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/spl_mmc.c