diff options
author | Leif Lindholm <quic_llindhol@quicinc.com> | 2024-09-30 12:32:20 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-10-02 02:58:31 +0000 |
commit | bf7dbf6380a5ae349bc833cd1d7378c3a78b718b (patch) | |
tree | 6999ba64da03d4b805ad9bc0145eabbd4fb92df0 /UefiPayloadPkg | |
parent | 4f4673846fc9d6fc1c10a6c025da4739d872a6a0 (diff) | |
download | edk2-bf7dbf6380a5ae349bc833cd1d7378c3a78b718b.tar.gz edk2-bf7dbf6380a5ae349bc833cd1d7378c3a78b718b.tar.bz2 edk2-bf7dbf6380a5ae349bc833cd1d7378c3a78b718b.zip |
MdePkg,UefiPayloadPkg: improve BaseFdtLib memreserve helper style
FdtNumRsv and FdtGetMemRsv were added for the benefit of UefiPayloadPkg,
but their naming matches neither upstream libfdt nor tianocore coding
style rules. And there was scope for improvement of the doxygen
descriptions as well.
These functions currently have only one in-tree user, UefiPayloadPkg
FdtParserLib. So rename them more conformant
FdtGetNumberOfReserveMapEntries
and
FdtGetReserveMapEntry
and update the description comment blocks, at the same time as
updating the existing user.
Continuous-integration-options: PatchCheck.ignore-multi-package
Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
Diffstat (limited to 'UefiPayloadPkg')
-rw-r--r-- | UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c b/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c index 09b7372b9a..9bece35e5c 100644 --- a/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c +++ b/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c @@ -889,10 +889,10 @@ ParseDtb ( }
}
- NumRsv = FdtNumRsv (Fdt);
+ NumRsv = FdtGetNumberOfReserveMapEntries (Fdt);
/* Look for an existing entry and add it to the efi mem map. */
for (index = 0; index < NumRsv; index++) {
- if (FdtGetMemRsv (Fdt, index, &Addr, &Size) != 0) {
+ if (FdtGetReserveMapEntry (Fdt, index, &Addr, &Size) != 0) {
continue;
}
|