On Mon, May 25, 2020 at 7:38 AM Simon Glass <[email protected]> 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 <[email protected]> > --- > > 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 <[email protected]>

