diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-02 18:00:50 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | d0e2f8232a26453fc0191629ed44ff2a46ea073e (patch) | |
tree | 0a1ee9b5ba30087f1a37933da15195e3a24a5d80 /MdePkg/Library/UefiLib | |
parent | e3917e22e769898bb0d08d0112e768437f1ff9fb (diff) | |
download | edk2-d0e2f8232a26453fc0191629ed44ff2a46ea073e.tar.gz edk2-d0e2f8232a26453fc0191629ed44ff2a46ea073e.tar.bz2 edk2-d0e2f8232a26453fc0191629ed44ff2a46ea073e.zip |
MdePkg: 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: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdePkg/Library/UefiLib')
-rw-r--r-- | MdePkg/Library/UefiLib/Acpi.c | 4 | ||||
-rw-r--r-- | MdePkg/Library/UefiLib/Console.c | 2 | ||||
-rw-r--r-- | MdePkg/Library/UefiLib/UefiDriverModel.c | 32 | ||||
-rw-r--r-- | MdePkg/Library/UefiLib/UefiLib.c | 4 | ||||
-rw-r--r-- | MdePkg/Library/UefiLib/UefiLibPrint.c | 13 | ||||
-rw-r--r-- | MdePkg/Library/UefiLib/UefiNotTiano.c | 8 |
6 files changed, 31 insertions, 32 deletions
diff --git a/MdePkg/Library/UefiLib/Acpi.c b/MdePkg/Library/UefiLib/Acpi.c index d8f147bfe3..d4f7fc8aa8 100644 --- a/MdePkg/Library/UefiLib/Acpi.c +++ b/MdePkg/Library/UefiLib/Acpi.c @@ -33,7 +33,7 @@ ScanTableInSDT ( IN EFI_ACPI_DESCRIPTION_HEADER *Sdt,
IN UINTN TablePointerSize,
IN UINT32 Signature,
- IN EFI_ACPI_COMMON_HEADER *PreviousTable, OPTIONAL
+ IN EFI_ACPI_COMMON_HEADER *PreviousTable OPTIONAL,
OUT BOOLEAN *PreviousTableLocated OPTIONAL
)
{
@@ -172,7 +172,7 @@ EFI_ACPI_COMMON_HEADER * LocateAcpiTableInAcpiConfigurationTable (
IN EFI_GUID *AcpiGuid,
IN UINT32 Signature,
- IN EFI_ACPI_COMMON_HEADER *PreviousTable, OPTIONAL
+ IN EFI_ACPI_COMMON_HEADER *PreviousTable OPTIONAL,
OUT BOOLEAN *PreviousTableLocated OPTIONAL
)
{
diff --git a/MdePkg/Library/UefiLib/Console.c b/MdePkg/Library/UefiLib/Console.c index 17ec31c966..e5b04849d8 100644 --- a/MdePkg/Library/UefiLib/Console.c +++ b/MdePkg/Library/UefiLib/Console.c @@ -390,7 +390,7 @@ VOID EFIAPI
CreatePopUp (
IN UINTN Attribute,
- OUT EFI_INPUT_KEY *Key, OPTIONAL
+ OUT EFI_INPUT_KEY *Key OPTIONAL,
...
)
{
diff --git a/MdePkg/Library/UefiLib/UefiDriverModel.c b/MdePkg/Library/UefiLib/UefiDriverModel.c index 2f8bf8d2b8..deaf9a74a9 100644 --- a/MdePkg/Library/UefiLib/UefiDriverModel.c +++ b/MdePkg/Library/UefiLib/UefiDriverModel.c @@ -137,8 +137,8 @@ EfiLibInstallAllDriverProtocols ( IN CONST EFI_SYSTEM_TABLE *SystemTable,
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
IN EFI_HANDLE DriverBindingHandle,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL
)
{
@@ -256,8 +256,8 @@ EFI_STATUS EFIAPI
EfiLibUninstallAllDriverProtocols (
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL
)
{
@@ -379,7 +379,7 @@ EfiLibInstallDriverBindingComponentName2 ( IN CONST EFI_SYSTEM_TABLE *SystemTable,
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
IN EFI_HANDLE DriverBindingHandle,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL
)
{
@@ -455,7 +455,7 @@ EFI_STATUS EFIAPI
EfiLibUninstallDriverBindingComponentName2 (
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL
)
{
@@ -543,11 +543,11 @@ EfiLibInstallAllDriverProtocols2 ( IN CONST EFI_SYSTEM_TABLE *SystemTable,
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
IN EFI_HANDLE DriverBindingHandle,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2, OPTIONAL
- IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2 OPTIONAL,
+ IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS2_PROTOCOL *DriverDiagnostics2 OPTIONAL
)
{
@@ -1297,11 +1297,11 @@ EFI_STATUS EFIAPI
EfiLibUninstallAllDriverProtocols2 (
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
- IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
- IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
- IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2, OPTIONAL
- IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics, OPTIONAL
+ IN CONST EFI_COMPONENT_NAME_PROTOCOL *ComponentName OPTIONAL,
+ IN CONST EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2 OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration OPTIONAL,
+ IN CONST EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2 OPTIONAL,
+ IN CONST EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL,
IN CONST EFI_DRIVER_DIAGNOSTICS2_PROTOCOL *DriverDiagnostics2 OPTIONAL
)
{
diff --git a/MdePkg/Library/UefiLib/UefiLib.c b/MdePkg/Library/UefiLib/UefiLib.c index b6a33a0a48..c2d143e821 100644 --- a/MdePkg/Library/UefiLib/UefiLib.c +++ b/MdePkg/Library/UefiLib/UefiLib.c @@ -136,7 +136,7 @@ EfiCreateProtocolNotifyEvent( IN EFI_GUID *ProtocolGuid,
IN EFI_TPL NotifyTpl,
IN EFI_EVENT_NOTIFY NotifyFunction,
- IN VOID *NotifyContext, OPTIONAL
+ IN VOID *NotifyContext OPTIONAL,
OUT VOID **Registration
)
{
@@ -207,7 +207,7 @@ EfiNamedEventListen ( IN CONST EFI_GUID *Name,
IN EFI_TPL NotifyTpl,
IN EFI_EVENT_NOTIFY NotifyFunction,
- IN CONST VOID *NotifyContext, OPTIONAL
+ IN CONST VOID *NotifyContext OPTIONAL,
OUT VOID *Registration OPTIONAL
)
{
diff --git a/MdePkg/Library/UefiLib/UefiLibPrint.c b/MdePkg/Library/UefiLib/UefiLibPrint.c index ae3a94eb0c..41db7bdfc3 100644 --- a/MdePkg/Library/UefiLib/UefiLibPrint.c +++ b/MdePkg/Library/UefiLib/UefiLibPrint.c @@ -600,8 +600,8 @@ EFIAPI PrintXY (
IN UINTN PointX,
IN UINTN PointY,
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround OPTIONAL,
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround OPTIONAL,
IN CONST CHAR16 *Format,
...
)
@@ -679,8 +679,8 @@ EFIAPI AsciiPrintXY (
IN UINTN PointX,
IN UINTN PointY,
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
- IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround OPTIONAL,
+ IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround OPTIONAL,
IN CONST CHAR8 *Format,
...
)
@@ -735,7 +735,7 @@ AsciiPrintXY ( CHAR16*
EFIAPI
CatVSPrint (
- IN CHAR16 *String, OPTIONAL
+ IN CHAR16 *String OPTIONAL,
IN CONST CHAR16 *FormatString,
IN VA_LIST Marker
)
@@ -800,7 +800,7 @@ CatVSPrint ( CHAR16 *
EFIAPI
CatSPrint (
- IN CHAR16 *String, OPTIONAL
+ IN CHAR16 *String OPTIONAL,
IN CONST CHAR16 *FormatString,
...
)
@@ -813,4 +813,3 @@ CatSPrint ( VA_END (Marker);
return NewString;
}
-
diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib/UefiNotTiano.c index c614b1ea1a..32cc26cfc9 100644 --- a/MdePkg/Library/UefiLib/UefiNotTiano.c +++ b/MdePkg/Library/UefiLib/UefiNotTiano.c @@ -69,8 +69,8 @@ EFI_STATUS EFIAPI
EfiCreateEventLegacyBootEx (
IN EFI_TPL NotifyTpl,
- IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL
- IN VOID *NotifyContext, OPTIONAL
+ IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL,
+ IN VOID *NotifyContext OPTIONAL,
OUT EFI_EVENT *LegacyBootEvent
)
{
@@ -164,8 +164,8 @@ EFI_STATUS EFIAPI
EfiCreateEventReadyToBootEx (
IN EFI_TPL NotifyTpl,
- IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL
- IN VOID *NotifyContext, OPTIONAL
+ IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL,
+ IN VOID *NotifyContext OPTIONAL,
OUT EFI_EVENT *ReadyToBootEvent
)
{
|