diff options
author | Angel Pons <th3fanbus@gmail.com> | 2023-03-27 12:06:08 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-03-30 13:35:51 +0000 |
commit | d4c5fc0e8ed962215767a9445df12be880994ad5 (patch) | |
tree | e8563b8541e556739b8a5fcfcc7726765c62bec1 /.clang-format | |
parent | 603dd56618d21e9000ea392bccb43054f284f140 (diff) |
mb/prodrive/atlas: Rework EEPROM layout structures
To avoid having to calculate the length of a struct separately, rework
the code to give the struct a tag name, so that `sizeof()` can be used
instead. This involves refactoring the `get_emi_eeprom_vpd()` function
to return a struct instead of a union, so callers can no longer access
the EEPROM data as an array of bytes without additional code, but this
array view is only used inside `get_emi_eeprom_vpd()` when reading the
data from EMI.
Change-Id: Id1bc40939631baa131b5f60eadbfe42838294ebe
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73983
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions