[PATCH v4 07/13] cbfs: Unify the two header loaders
Bin Meng
bmeng.cn at gmail.com
Mon May 25 03:14:24 CEST 2020
On Mon, May 25, 2020 at 7:38 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 v4: None
> 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