cbfs: Move result variable into the struct
authorSimon Glass <sjg@chromium.org>
Thu, 15 Aug 2019 01:56:13 +0000 (19:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 18 Aug 2019 13:54:10 +0000 (21:54 +0800)
commitc7f16934749b054ce1f0b75bd664d22af8b7c588
treedca5553d140b2e79cc3c9ec545b8e9a51201e852
parent02e4af63a9f5531b7975d21828edea04d6d519d2
cbfs: Move result variable into the struct

Move the result variable into the struct also, so that it can be used when
BSS is not available. Add a function to read it.

Note that all functions sill use the BSS version of the data.

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