cbfs: Move static variables into a struct
authorSimon Glass <sjg@chromium.org>
Thu, 15 Aug 2019 01:56:12 +0000 (19:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 18 Aug 2019 13:54:10 +0000 (21:54 +0800)
commit02e4af63a9f5531b7975d21828edea04d6d519d2
tree81dffa2a2f99178b1506c4f8ef750d688d3c0cb6
parentfc7b9e16a04610b951a9d36abf41d80edb87e3e5
cbfs: Move static variables into a struct

At present there are a number of static variables in BSS. This cannot work
with SPL, at least until BSS is available in board_init_r().

Move the variables into a struct, so it is possible to malloc() it and use
it before BSS is available.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
fs/cbfs/cbfs.c