summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Pci
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-02 18:00:49 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commite3917e22e769898bb0d08d0112e768437f1ff9fb (patch)
tree3a9d1241d3caaa5846e1ec936c38411c0f660250 /MdeModulePkg/Bus/Pci
parent9c721071d30e69fd47f583cde370c3954cba974d (diff)
downloadedk2-e3917e22e769898bb0d08d0112e768437f1ff9fb.tar.gz
edk2-e3917e22e769898bb0d08d0112e768437f1ff9fb.tar.bz2
edk2-e3917e22e769898bb0d08d0112e768437f1ff9fb.zip
MdeModulePkg: 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 'MdeModulePkg/Bus/Pci')
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c3
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.h2
-rw-r--r--MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c2
-rw-r--r--MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/ComponentName.c2
-rw-r--r--MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h2
5 files changed, 5 insertions, 6 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
index 40171f9ed5..996d6fbe92 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
@@ -1854,7 +1854,7 @@ EFIAPI
PciIoGetBarAttributes (
IN EFI_PCI_IO_PROTOCOL * This,
IN UINT8 BarIndex,
- OUT UINT64 *Supports, OPTIONAL
+ OUT UINT64 *Supports OPTIONAL,
OUT VOID **Resources OPTIONAL
)
{
@@ -2084,4 +2084,3 @@ PciDevicesOnTheSamePath (
return (BOOLEAN) (Existed1 || Existed2);
}
-
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.h b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.h
index 8c50c48ac5..5de6222f93 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.h
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.h
@@ -602,7 +602,7 @@ EFIAPI
PciIoGetBarAttributes (
IN EFI_PCI_IO_PROTOCOL * This,
IN UINT8 BarIndex,
- OUT UINT64 *Supports, OPTIONAL
+ OUT UINT64 *Supports OPTIONAL,
OUT VOID **Resources OPTIONAL
);
diff --git a/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c b/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c
index 4a9b49e347..7ce2e06afe 100644
--- a/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c
+++ b/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c
@@ -421,7 +421,7 @@ CreateSerialDevice (
IN BOOLEAN CreateControllerNode,
IN UINT32 Instance,
IN PARENT_IO_PROTOCOL_PTR ParentIo,
- IN PCI_SERIAL_PARAMETER *PciSerialParameter, OPTIONAL
+ IN PCI_SERIAL_PARAMETER *PciSerialParameter OPTIONAL,
IN PCI_DEVICE_INFO *PciDeviceInfo OPTIONAL
)
{
diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/ComponentName.c b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/ComponentName.c
index 85a5ce8417..c915d37bf3 100644
--- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/ComponentName.c
+++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/ComponentName.c
@@ -165,7 +165,7 @@ EFIAPI
SdMmcPciHcComponentNameGetControllerName (
IN EFI_COMPONENT_NAME_PROTOCOL *This,
IN EFI_HANDLE ControllerHandle,
- IN EFI_HANDLE ChildHandle, OPTIONAL
+ IN EFI_HANDLE ChildHandle OPTIONAL,
IN CHAR8 *Language,
OUT CHAR16 **ControllerName
)
diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h
index 40e4373e57..fb69aa4baf 100644
--- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h
+++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h
@@ -648,7 +648,7 @@ EFIAPI
SdMmcPciHcComponentNameGetControllerName (
IN EFI_COMPONENT_NAME_PROTOCOL *This,
IN EFI_HANDLE ControllerHandle,
- IN EFI_HANDLE ChildHandle, OPTIONAL
+ IN EFI_HANDLE ChildHandle OPTIONAL,
IN CHAR8 *Language,
OUT CHAR16 **ControllerName
);