[PATCH v3 07/13] cbfs: Unify the two header loaders
Bin Meng
bmeng.cn at gmail.com
Sat May 23 15:20:37 CEST 2020
On Sat, May 23, 2020 at 12:32 AM Simon Glass <sjg at chromium.org> wrote:
>
> 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 at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2:
> - Fix incorrect function comments
>
> fs/cbfs/cbfs.c | 59 +++++++++++++++++++++++++++++++-------------------
> 1 file changed, 37 insertions(+), 22 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list