
25 May
2020
25 May
'20
3:14 a.m.
On Mon, May 25, 2020 at 7:38 AM Simon Glass sjg@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@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@gmail.com