From: Antoine Coeur <co...@gmx.fr>

Fix various typos in comments and documentation.

Cc: Jian J Wang <jian.j.w...@intel.com>
Cc: Hao A Wu <hao.a...@intel.com>
Cc: Ray Ni <ray...@intel.com>
Signed-off-by: Philippe Mathieu-Daude <phi...@redhat.com>
---
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h     | 14 +++++++-------
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h     |  2 +-
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h |  2 +-
 MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h    |  2 +-
 MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h  |  2 +-
 MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h    |  2 +-
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c     | 12 ++++++------
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c  |  2 +-
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c     |  4 ++--
 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c |  8 ++++----
 MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c  |  2 +-
 MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c  |  2 +-
 12 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h
index 3fdbc94d95eb..c84a24df2413 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h
@@ -159,7 +159,7 @@ typedef struct _EFI_USB_BUS_PROTOCOL {
 
 //
 // Stands for the real USB device. Each device may
-// has several seperately working interfaces.
+// has several separately working interfaces.
 //
 struct _USB_DEVICE {
   USB_BUS                   *Bus;
@@ -265,8 +265,8 @@ struct _USB_BUS {
   // USB Bus driver need to control the recursive connect policy of the bus, 
only those wanted
   // usb child device will be recursively connected.
   //
-  // WantedUsbIoDPList tracks the Usb child devices which user want to 
recursivly fully connecte,
-  // every wanted child device is stored in a item of the WantedUsbIoDPList, 
whose structrure is
+  // WantedUsbIoDPList tracks the Usb child devices which user want to 
recursively fully connecte,
+  // every wanted child device is stored in a item of the WantedUsbIoDPList, 
whose structure is
   // DEVICE_PATH_LIST_ITEM
   //
   LIST_ENTRY                WantedUsbIoDPList;
@@ -337,7 +337,7 @@ UsbBusAddWantedUsbIoDP (
   Check whether a usb child device is the wanted device in a bus.
 
   @param  Bus     The Usb bus's private data pointer.
-  @param  UsbIf   The usb child device inferface.
+  @param  UsbIf   The usb child device interface.
 
   @retval True    If a usb child device is the wanted device in a bus.
   @retval False   If a usb child device is *NOT* the wanted device in a bus.
@@ -351,7 +351,7 @@ UsbBusIsWantedUsbIO (
   );
 
 /**
-  Recursively connnect every wanted usb child device to ensure they all fully 
connected.
+  Recursively connect every wanted usb child device to ensure they all fully 
connected.
   Check all the child Usb IO handles in this bus, recursively connecte if it 
is wanted usb child device.
 
   @param  UsbBusId                  Point to EFI_USB_BUS_PROTOCOL interface.
@@ -461,7 +461,7 @@ UsbIoSyncInterruptTransfer (
                                  the request.
   @param  PollInterval           The interval to poll the transfer result, (in 
ms).
   @param  DataLength             The length of perodic data transfer.
-  @param  Callback               The function to call periodicaly when 
transfer is
+  @param  Callback               The function to call periodically when 
transfer is
                                  ready.
   @param  Context                The context to the callback.
 
@@ -512,7 +512,7 @@ UsbIoIsochronousTransfer (
   @param  DeviceEndpoint         The device endpoint.
   @param  Data                   The data to transfer.
   @param  DataLength             The length of perodic data transfer.
-  @param  IsochronousCallBack    The function to call periodicaly when 
transfer is
+  @param  IsochronousCallBack    The function to call periodically when 
transfer is
                                  ready.
   @param  Context                The context to the callback.
 
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h
index 0f4db2f34dc9..6043b5b2cd48 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h
@@ -97,7 +97,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 
 #pragma pack(1)
 //
-// Hub descriptor, the last two fields are of variable lenght.
+// Hub descriptor, the last two fields are of variable length.
 //
 typedef struct {
   UINT8           Length;
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h
index 9c52520c87f7..1d2b8a6174c7 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h
@@ -101,7 +101,7 @@ UsbHcClearRootHubPortFeature (
   @param  UsbResult        The result of transfer.
 
   @retval EFI_SUCCESS      The control transfer finished without error.
-  @retval Others           The control transfer failed, reason returned in 
UsbReslt.
+  @retval Others           The control transfer failed, reason returned in 
UsbResult.
 
 **/
 EFI_STATUS
diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h 
b/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h
index a78a1652ff4a..2a6d911a067e 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h
+++ b/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h
@@ -78,7 +78,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #define MAXBYTES  8
 #pragma pack(1)
 //
-// Hub descriptor, the last two fields are of variable lenght.
+// Hub descriptor, the last two fields are of variable length.
 //
 typedef struct {
   UINT8 Length;
diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h 
b/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h
index cf9400987a38..48b8e594b283 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h
+++ b/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h
@@ -1,5 +1,5 @@
 /** @file
-Common Libarary for PEI USB
+Common Library for PEI USB
 
 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. <BR>
 
diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h 
b/MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h
index caba53266dac..b55b97d8707f 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h
+++ b/MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h
@@ -154,7 +154,7 @@ PeiUsbControlTransfer (
   @param  DeviceEndpoint        Endpoint number and its direction in bit 7.
   @param  Data                  A pointer to the buffer of data to transmit
                                 from or receive into.
-  @param  DataLength            The lenght of the data buffer.
+  @param  DataLength            The length of the data buffer.
   @param  Timeout               Indicates the maximum time, in millisecond, 
which the
                                 transfer is allowed to complete. If Timeout is 
0, then
                                 the caller must wait for the function to be 
completed
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c
index d4002c48d74e..4b4915c019ad 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c
@@ -96,10 +96,10 @@ UsbIoControlTransfer (
              UsbStatus
              );
   //
-  // If the request completed sucessfully and the Direction of the request is
+  // If the request completed successfully and the Direction of the request is
   // EfiUsbDataIn or EfiUsbDataOut, then make sure the actual number of bytes
-  // transfered is the same as the number of bytes requested.  If a different
-  // number of bytes were transfered, then return EFI_DEVICE_ERROR.
+  // transferred is the same as the number of bytes requested.  If a different
+  // number of bytes were transferred, then return EFI_DEVICE_ERROR.
   //
   if (!EFI_ERROR (Status)) {
     if (Direction != EfiUsbNoData && DataLength != RequestedDataLength) {
@@ -389,7 +389,7 @@ ON_EXIT:
                                  the request.
   @param  PollInterval           The interval to poll the transfer result, (in 
ms).
   @param  DataLength             The length of perodic data transfer.
-  @param  Callback               The function to call periodicaly when 
transfer is
+  @param  Callback               The function to call periodically when 
transfer is
                                  ready.
   @param  Context                The context to the callback.
 
@@ -490,7 +490,7 @@ UsbIoIsochronousTransfer (
   @param  DeviceEndpoint         The device endpoint.
   @param  Data                   The data to transfer.
   @param  DataLength             The length of perodic data transfer.
-  @param  IsochronousCallBack    The function to call periodicaly when 
transfer is
+  @param  IsochronousCallBack    The function to call periodically when 
transfer is
                                  ready.
   @param  Context                The context to the callback.
 
@@ -1355,7 +1355,7 @@ UsbBusControllerDriverStart (
       if (IsDevicePathEnd (RemainingDevicePath)) {
         //
         // If RemainingDevicePath is the End of Device Path Node,
-        // skip enumerate any device and return EFI_SUCESSS
+        // skip enumerate any device and return EFI_SUCCESS
         //
         return EFI_SUCCESS;
       }
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
index cc0de52de411..d3e0cfa626c3 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c
@@ -757,7 +757,7 @@ UsbEnumerateNewDev (
 
   //
   // After port is reset, hub establishes a signal path between
-  // the device and host (DEFALUT state). Device's registers are
+  // the device and host (DEFAULT state). Device's registers are
   // reset, use default address 0 (host enumerates one device at
   // a time) , and ready to respond to control transfer at EP 0.
   //
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c
index c7c27a54819f..c5bd112511a4 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c
@@ -545,7 +545,7 @@ UsbOnHubInterrupt (
   // OK, actually something is changed, save the change map
   // then signal the HUB to do enumeration. This is a good
   // practise since UsbOnHubInterrupt is called in the context
-  // of host contrller's AsyncInterrupt monitor.
+  // of host controller's AsyncInterrupt monitor.
   //
   HubIf->ChangeMap = AllocateZeroPool (DataLength);
 
@@ -630,7 +630,7 @@ UsbHubInit (
 
   //
   // OK, set IsHub to TRUE. Now usb bus can handle this device
-  // as a working HUB. If failed eariler, bus driver will not
+  // as a working HUB. If failed earlier, bus driver will not
   // recognize it as a hub. Other parts of the bus should be able
   // to work.
   //
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c 
b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
index 8559992d2743..7529e03e853c 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
@@ -784,7 +784,7 @@ MatchUsbClass (
   // If connect class policy, determine whether to create device handle by the 
five fields
   // in class device path node.
   //
-  // In addtion, hub interface is always matched for this policy.
+  // In addition, hub interface is always matched for this policy.
   //
   if ((ActIfDesc->InterfaceClass == USB_HUB_CLASS_CODE) &&
       (ActIfDesc->InterfaceSubClass == USB_HUB_SUBCLASS_CODE)) {
@@ -1018,7 +1018,7 @@ UsbBusAddWantedUsbIoDP (
   } else {
     //
     // If RemainingDevicePath is the End of Device Path Node,
-    // skip enumerate any device and return EFI_SUCESSS
+    // skip enumerate any device and return EFI_SUCCESS
     //
     return EFI_SUCCESS;
   }
@@ -1034,7 +1034,7 @@ UsbBusAddWantedUsbIoDP (
   Check whether a usb child device is the wanted device in a bus.
 
   @param  Bus     The Usb bus's private data pointer.
-  @param  UsbIf   The usb child device inferface.
+  @param  UsbIf   The usb child device interface.
 
   @retval True    If a usb child device is the wanted device in a bus.
   @retval False   If a usb child device is *NOT* the wanted device in a bus.
@@ -1136,7 +1136,7 @@ UsbBusIsWantedUsbIO (
 }
 
 /**
-  Recursively connnect every wanted usb child device to ensure they all fully 
connected.
+  Recursively connect every wanted usb child device to ensure they all fully 
connected.
   Check all the child Usb IO handles in this bus, recursively connecte if it 
is wanted usb child device.
 
   @param  UsbBusId                  Point to EFI_USB_BUS_PROTOCOL interface.
diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c 
b/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c
index 2cc1fc6aa77e..1385b0ab59af 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c
@@ -1,5 +1,5 @@
 /** @file
-Common Libarary for PEI USB
+Common Library for PEI USB
 
 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. <BR>
 
diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c 
b/MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c
index 653bbf52f005..fc04f834a549 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c
@@ -131,7 +131,7 @@ PeiUsbControlTransfer (
   @param  DeviceEndpoint        Endpoint number and its direction in bit 7.
   @param  Data                  A pointer to the buffer of data to transmit
                                 from or receive into.
-  @param  DataLength            The lenght of the data buffer.
+  @param  DataLength            The length of the data buffer.
   @param  Timeout               Indicates the maximum time, in millisecond, 
which the
                                 transfer is allowed to complete. If Timeout is 
0, then
                                 the caller must wait for the function to be 
completed
-- 
2.21.0


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#51628): https://edk2.groups.io/g/devel/message/51628
Mute This Topic: https://groups.io/mt/65773540/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to