diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-08 13:18:22 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-23 20:27:57 -0700 |
commit | ababe101d3797cdc6c1c8ab703ce4dc8fd9ac326 (patch) | |
tree | 6c455b1aee6fef2fabf74c587f2b9ede17259230 /fs | |
parent | 08b7bc3c3afd20b9fc62dd356c0e961e6dba5f26 (diff) | |
download | u-boot-ababe101d3797cdc6c1c8ab703ce4dc8fd9ac326.tar.gz u-boot-ababe101d3797cdc6c1c8ab703ce4dc8fd9ac326.tar.xz u-boot-ababe101d3797cdc6c1c8ab703ce4dc8fd9ac326.zip |
cbfs: Rename checksum to attributes_offset
It seems that this field has been renamed in later version of coreboot.
Update it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cbfs/cbfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c index 7b2513cb24..af4d3c5e56 100644 --- a/fs/cbfs/cbfs.c +++ b/fs/cbfs/cbfs.c @@ -55,7 +55,7 @@ static void swap_file_header(struct cbfs_fileheader *dest, memcpy(&dest->magic, &src->magic, sizeof(dest->magic)); dest->len = be32_to_cpu(src->len); dest->type = be32_to_cpu(src->type); - dest->checksum = be32_to_cpu(src->checksum); + dest->attributes_offset = be32_to_cpu(src->attributes_offset); dest->offset = be32_to_cpu(src->offset); } @@ -108,7 +108,7 @@ static int file_cbfs_next_file(u8 *start, u32 size, u32 align, newNode->name = (char *)fileHeader + sizeof(struct cbfs_fileheader); newNode->name_length = name_len; - newNode->checksum = header.checksum; + newNode->attributes_offset = header.attributes_offset; step = header.len; if (step % align) |