]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit79067ed73c2668e0b3e2f56b7b92570aab7e078b
tree10e25c472dfd5d1eb9d1b977e2100d7a39bee585
parent582afe653e4fcd79cea81c36c21278512c700756
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