]> git.dujemihanovic.xyz Git - u-boot.git/commit
cbfs: Unify the two header loaders
authorSimon Glass <sjg@chromium.org>
Sun, 24 May 2020 23:38:18 +0000 (17:38 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 27 May 2020 06:40:09 +0000 (14:40 +0800)
commit9dc2355e515d2026b40da3beab5b9ebaef854c4c
tree33924b0203609a57a36d05056df4d12d57404bc7
parenta2c528fe8a2187abf444627f964b5b727bf5fd2b
cbfs: Unify the two header loaders

These two functions have mostly the same code. Pull this out into a common
function.

Also make this function zero the private data so that callers don't have
to do it. Finally, update cbfs_load_header_ptr() to take the base of the
ROM as its parameter, which makes more sense than passing the address of
the header within the ROM.

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