]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Usb: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:35 +0000 (02:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in comments and documentation.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Acked-by: Liming Gao <liming.gao@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-23-philmd@redhat.com>

MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c
MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c
MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c
MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h
MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c
MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h
MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h

index 5c071c661a457f10433ed3b8e3c8ecbe70cf6e03..2b1ca20a63142594c2bfa4114398121dbf3ee0c5 100644 (file)
@@ -192,7 +192,7 @@ BotDataPhase (
   TransferredSize = 0;\r
 \r
   //\r
-  // retrieve the the max packet length of the given endpoint\r
+  // retrieve the max packet length of the given endpoint\r
   //\r
   if (Direction == EfiUsbDataIn) {\r
     MaxPacketLen  = (PeiBotDev->BulkInEndpoint)->MaxPacketSize;\r
index 9e6e748845d46936d6166425a4fa1454e490682e..41f782a78bf98358926f88ae247db14e3b81588f 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-Pei USB ATATPI command implementations.\r
+Pei USB ATAPI command implementations.\r
 \r
 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
index fe9e6203010ed16ec6e71ab54bc8ab5382619660..292682a2e4477986c85f4915f1e727757c576744 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-Common Libarary  for PEI USB.\r
+Common Library  for PEI USB.\r
 \r
 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
index 266581b809958596b9188b2d9e6252f46f655b36..e06e2533a77684e31af84f7dd0d1375251c99b86 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-Common Libarary  for PEI USB.\r
+Common Library  for PEI USB.\r
 \r
 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
index ccb389067a615142bb48d655a6304d5d1c8fa3cd..9d1798278ef3027cc884f57d8b64b1a21a877be4 100644 (file)
@@ -584,7 +584,7 @@ USBKeyboardDriverBindingStop (
                                   data for the key that was pressed.\r
 \r
   @retval EFI_SUCCESS             The keystroke information was returned.\r
-  @retval EFI_NOT_READY           There was no keystroke data availiable.\r
+  @retval EFI_NOT_READY           There was no keystroke data available.\r
   @retval EFI_DEVICE_ERROR        The keystroke information was not returned due to\r
                                   hardware errors.\r
   @retval EFI_INVALID_PARAMETER   KeyData is NULL.\r
@@ -685,7 +685,7 @@ USBKeyboardReset (
                                information for the key that was pressed.\r
 \r
   @retval EFI_SUCCESS          The keystroke information was returned.\r
-  @retval EFI_NOT_READY        There was no keystroke data availiable.\r
+  @retval EFI_NOT_READY        There was no keystroke data available.\r
   @retval EFI_DEVICE_ERROR     The keystroke information was not returned due to\r
                                hardware errors.\r
 \r
@@ -764,7 +764,7 @@ USBKeyboardWaitForKey (
   OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   //\r
-  // WaitforKey doesn't suppor the partial key.\r
+  // WaitforKey doesn't support the partial key.\r
   // Considering if the partial keystroke is enabled, there maybe a partial\r
   // keystroke in the queue, so here skip the partial keystroke and get the\r
   // next key from the queue\r
@@ -871,7 +871,7 @@ KbdFreeNotifyList (
   @param  InputData         A pointer to keystroke data for the key that was pressed.\r
 \r
   @retval TRUE              Key pressed matches a registered key.\r
-  @retval FLASE             Key pressed does not matches a registered key.\r
+  @retval FALSE             Key pressed does not matches a registered key.\r
 \r
 **/\r
 BOOLEAN\r
index 65819e43e6bdcece599f385854eef59973898f50..852e43390d81d6380af414f25c5e6d3317b14603 100644 (file)
@@ -377,7 +377,7 @@ UsbKeyboardComponentNameGetControllerName (
 // Functions of Simple Text Input Protocol\r
 //\r
 /**\r
-  Reset the input device and optionaly run diagnostics\r
+  Reset the input device and optionally run diagnostics\r
 \r
   There are 2 types of reset for USB keyboard.\r
   For non-exhaustive reset, only keyboard buffer is cleared.\r
@@ -406,8 +406,8 @@ USBKeyboardReset (
                                information for the key that was pressed.\r
 \r
   @retval EFI_SUCCESS          The keystroke information was returned.\r
-  @retval EFI_NOT_READY        There was no keystroke data availiable.\r
-  @retval EFI_DEVICE_ERROR     The keydtroke information was not returned due to\r
+  @retval EFI_NOT_READY        There was no keystroke data available.\r
+  @retval EFI_DEVICE_ERROR     The keystroke information was not returned due to\r
                                hardware errors.\r
 \r
 **/\r
@@ -507,7 +507,7 @@ USBKeyboardSetState (
   @param  NotifyHandle                Points to the unique handle assigned to the registered notification.\r
 \r
   @retval EFI_SUCCESS                 The notification function was registered successfully.\r
-  @retval EFI_OUT_OF_RESOURCES        Unable to allocate resources for necesssary data structures.\r
+  @retval EFI_OUT_OF_RESOURCES        Unable to allocate resources for necessary data structures.\r
   @retval EFI_INVALID_PARAMETER       KeyData or NotifyHandle or KeyNotificationFunction is NULL.\r
 \r
 **/\r
@@ -574,7 +574,7 @@ KbdFreeNotifyList (
   @param  InputData         A pointer to keystroke data for the key that was pressed.\r
 \r
   @retval TRUE              Key pressed matches a registered key.\r
-  @retval FLASE             Key pressed does not matche a registered key.\r
+  @retval FALSE             Key pressed does not match a registered key.\r
 \r
 **/\r
 BOOLEAN\r
index 7eb65b8815c18f1e32ae8c8266d840a64fd5d72d..5faf82ea579cca39c809b2c259cb24fab1a0c777 100644 (file)
@@ -253,7 +253,7 @@ UINT8 EfiKeyToUsbKeyCodeConvertionTable[] = {
 };\r
 \r
 //\r
-// Keyboard modifier value to EFI Scan Code convertion table\r
+// Keyboard modifier value to EFI Scan Code conversion table\r
 // EFI Scan Code and the modifier values are defined in UEFI spec.\r
 //\r
 UINT8 ModifierValueToEfiScanCodeConvertionTable[] = {\r
@@ -569,7 +569,7 @@ FindPhysicalKey (
 \r
   This function is registered to event of EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID\r
   group type, which will be triggered by EFI_HII_DATABASE_PROTOCOL.SetKeyboardLayout().\r
-  It tries to get curent keyboard layout from HII database.\r
+  It tries to get current keyboard layout from HII database.\r
 \r
   @param  Event        Event being signaled.\r
   @param  Context      Points to USB_KB_DEV instance.\r
@@ -1084,7 +1084,7 @@ KeyboardHandler (
 \r
   //\r
   // Handle modifier key's pressing or releasing situation.\r
-  // According to USB HID Firmware spec, Byte 0 uses folloing map of Modifier keys:\r
+  // According to USB HID Firmware spec, Byte 0 uses following map of Modifier keys:\r
   // Bit0: Left Control,  Keycode: 0xe0\r
   // Bit1: Left Shift,    Keycode: 0xe1\r
   // Bit2: Left Alt,      Keycode: 0xe2\r
index 601fdd0c92e267e2c97118099f93f25062846b80..811f136b65b24c586f4ca753bf108b71bce4a46a 100644 (file)
@@ -108,7 +108,7 @@ ReleaseKeyboardLayoutResources (
 \r
   This function is the handler function for USB keyboard's asynchronous interrupt transfer\r
   to manage the keyboard. It parses the USB keyboard input report, and inserts data to\r
-  keyboard buffer according to state of modifer keys and normal keys. Timer for repeat key\r
+  keyboard buffer according to state of modifier keys and normal keys. Timer for repeat key\r
   is also set accordingly.\r
 \r
   @param  Data             A pointer to a buffer that is filled with key data which is\r