cbfs: Record the start address in cbfs_priv
authorSimon Glass <sjg@chromium.org>
Sun, 24 May 2020 23:38:20 +0000 (17:38 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 27 May 2020 06:40:09 +0000 (14:40 +0800)
commitc685f8bcfcf097b1f46ea742a65765b7696a9a48
tree10e25c472dfd5d1eb9d1b977e2100d7a39bee585
parente82ab51bafecef063a081851d592fe82b680d50f
cbfs: Record the start address in cbfs_priv

The start address of the CBFS is used when scanning for files. It makes
sense to put this in our cbfs_priv struct and calculate it when we read
the header.

Update the code accordingly.

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