summaryrefslogtreecommitdiffstats
path: root/UefiPayloadPkg/Library
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-02 18:01:01 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commite35dd3282157b2c9418999828c6dad695f148142 (patch)
treeacc91bc61a91b7b7be9128c7037f342fde8987ec /UefiPayloadPkg/Library
parent4ec586b9f67a86036dfc8f23f4f8a0341513e94c (diff)
downloadedk2-e35dd3282157b2c9418999828c6dad695f148142.tar.gz
edk2-e35dd3282157b2c9418999828c6dad695f148142.tar.bz2
edk2-e35dd3282157b2c9418999828c6dad695f148142.zip
UefiPayloadPkg: Change OPTIONAL keyword usage style
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760 Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'UefiPayloadPkg/Library')
-rw-r--r--UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c3
-rw-r--r--UefiPayloadPkg/Library/DxeHobLib/HobLib.c2
-rw-r--r--UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c3
-rw-r--r--UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c3
4 files changed, 4 insertions, 7 deletions
diff --git a/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c b/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c
index b86382d709..1b486647bd 100644
--- a/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c
+++ b/UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.c
@@ -209,7 +209,7 @@ GetPerformanceCounter (
UINT64
EFIAPI
GetPerformanceCounterProperties (
- OUT UINT64 *StartValue, OPTIONAL
+ OUT UINT64 *StartValue OPTIONAL,
OUT UINT64 *EndValue OPTIONAL
)
{
@@ -267,4 +267,3 @@ GetTimeInNanoSecond (
return NanoSeconds;
}
-
diff --git a/UefiPayloadPkg/Library/DxeHobLib/HobLib.c b/UefiPayloadPkg/Library/DxeHobLib/HobLib.c
index 5d5ede0c17..6787f65e18 100644
--- a/UefiPayloadPkg/Library/DxeHobLib/HobLib.c
+++ b/UefiPayloadPkg/Library/DxeHobLib/HobLib.c
@@ -454,7 +454,7 @@ BuildFv3Hob (
IN UINT64 Length,
IN UINT32 AuthenticationStatus,
IN BOOLEAN ExtractedFv,
- IN CONST EFI_GUID *FvName, OPTIONAL
+ IN CONST EFI_GUID *FvName OPTIONAL,
IN CONST EFI_GUID *FileName OPTIONAL
)
{
diff --git a/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c b/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c
index 61cd11ba03..6853f2e55f 100644
--- a/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c
+++ b/UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c
@@ -511,7 +511,7 @@ BuildFv3Hob (
IN UINT64 Length,
IN UINT32 AuthenticationStatus,
IN BOOLEAN ExtractedFv,
- IN CONST EFI_GUID *FvName, OPTIONAL
+ IN CONST EFI_GUID *FvName OPTIONAL,
IN CONST EFI_GUID *FileName OPTIONAL
)
{
@@ -679,4 +679,3 @@ BuildMemoryAllocationHob (
//
ZeroMem (Hob->AllocDescriptor.Reserved, sizeof (Hob->AllocDescriptor.Reserved));
}
-
diff --git a/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c b/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c
index 71dfcef740..3f2db14bf3 100644
--- a/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c
+++ b/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c
@@ -803,7 +803,7 @@ EFI_STATUS
EFIAPI
SpiGetRegionAddress (
IN FLASH_REGION_TYPE FlashRegionType,
- OUT UINT32 *BaseAddress, OPTIONAL
+ OUT UINT32 *BaseAddress OPTIONAL,
OUT UINT32 *RegionSize OPTIONAL
)
{
@@ -854,4 +854,3 @@ SpiGetRegionAddress (
return EFI_SUCCESS;
}
-