From 0dbaba42399c0e1a1b432a417a67c5bebe750e84 Mon Sep 17 00:00:00 2001 From: Antoine Coeur Date: Fri, 7 Feb 2020 02:07:35 +0100 Subject: [PATCH] MdeModulePkg/Usb: Fix various typos Fix various typos in comments and documentation. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Signed-off-by: Antoine Coeur Reviewed-by: Philippe Mathieu-Daude Acked-by: Liming Gao Signed-off-by: Philippe Mathieu-Daude Message-Id: <20200207010831.9046-23-philmd@redhat.com> --- MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c | 2 +- MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c | 2 +- MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c | 2 +- MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h | 2 +- MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c | 8 ++++---- MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h | 10 +++++----- MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 6 +++--- MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h | 2 +- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c b/MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c index 5c071c661a..2b1ca20a63 100644 --- a/MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c +++ b/MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c @@ -192,7 +192,7 @@ BotDataPhase ( TransferredSize = 0; // - // retrieve the the max packet length of the given endpoint + // retrieve the max packet length of the given endpoint // if (Direction == EfiUsbDataIn) { MaxPacketLen = (PeiBotDev->BulkInEndpoint)->MaxPacketSize; diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c b/MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c index 9e6e748845..41f782a78b 100644 --- a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c +++ b/MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c @@ -1,5 +1,5 @@ /** @file -Pei USB ATATPI command implementations. +Pei USB ATAPI command implementations. Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c b/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c index fe9e620301..292682a2e4 100644 --- a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c +++ b/MdeModulePkg/Bus/Usb/UsbBotPei/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.
diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h b/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h index 266581b809..e06e2533a7 100644 --- a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h +++ b/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h @@ -1,5 +1,5 @@ /** @file -Common Libarary for PEI USB. +Common Library for PEI USB. Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c index ccb389067a..9d1798278e 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c @@ -584,7 +584,7 @@ USBKeyboardDriverBindingStop ( data for the key that was pressed. @retval EFI_SUCCESS The keystroke information was returned. - @retval EFI_NOT_READY There was no keystroke data availiable. + @retval EFI_NOT_READY There was no keystroke data available. @retval EFI_DEVICE_ERROR The keystroke information was not returned due to hardware errors. @retval EFI_INVALID_PARAMETER KeyData is NULL. @@ -685,7 +685,7 @@ USBKeyboardReset ( information for the key that was pressed. @retval EFI_SUCCESS The keystroke information was returned. - @retval EFI_NOT_READY There was no keystroke data availiable. + @retval EFI_NOT_READY There was no keystroke data available. @retval EFI_DEVICE_ERROR The keystroke information was not returned due to hardware errors. @@ -764,7 +764,7 @@ USBKeyboardWaitForKey ( OldTpl = gBS->RaiseTPL (TPL_NOTIFY); // - // WaitforKey doesn't suppor the partial key. + // WaitforKey doesn't support the partial key. // Considering if the partial keystroke is enabled, there maybe a partial // keystroke in the queue, so here skip the partial keystroke and get the // next key from the queue @@ -871,7 +871,7 @@ KbdFreeNotifyList ( @param InputData A pointer to keystroke data for the key that was pressed. @retval TRUE Key pressed matches a registered key. - @retval FLASE Key pressed does not matches a registered key. + @retval FALSE Key pressed does not matches a registered key. **/ BOOLEAN diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h index 65819e43e6..852e43390d 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h @@ -377,7 +377,7 @@ UsbKeyboardComponentNameGetControllerName ( // Functions of Simple Text Input Protocol // /** - Reset the input device and optionaly run diagnostics + Reset the input device and optionally run diagnostics There are 2 types of reset for USB keyboard. For non-exhaustive reset, only keyboard buffer is cleared. @@ -406,8 +406,8 @@ USBKeyboardReset ( information for the key that was pressed. @retval EFI_SUCCESS The keystroke information was returned. - @retval EFI_NOT_READY There was no keystroke data availiable. - @retval EFI_DEVICE_ERROR The keydtroke information was not returned due to + @retval EFI_NOT_READY There was no keystroke data available. + @retval EFI_DEVICE_ERROR The keystroke information was not returned due to hardware errors. **/ @@ -507,7 +507,7 @@ USBKeyboardSetState ( @param NotifyHandle Points to the unique handle assigned to the registered notification. @retval EFI_SUCCESS The notification function was registered successfully. - @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for necesssary data structures. + @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for necessary data structures. @retval EFI_INVALID_PARAMETER KeyData or NotifyHandle or KeyNotificationFunction is NULL. **/ @@ -574,7 +574,7 @@ KbdFreeNotifyList ( @param InputData A pointer to keystroke data for the key that was pressed. @retval TRUE Key pressed matches a registered key. - @retval FLASE Key pressed does not matche a registered key. + @retval FALSE Key pressed does not match a registered key. **/ BOOLEAN diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c index 7eb65b8815..5faf82ea57 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c @@ -253,7 +253,7 @@ UINT8 EfiKeyToUsbKeyCodeConvertionTable[] = { }; // -// Keyboard modifier value to EFI Scan Code convertion table +// Keyboard modifier value to EFI Scan Code conversion table // EFI Scan Code and the modifier values are defined in UEFI spec. // UINT8 ModifierValueToEfiScanCodeConvertionTable[] = { @@ -569,7 +569,7 @@ FindPhysicalKey ( This function is registered to event of EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID group type, which will be triggered by EFI_HII_DATABASE_PROTOCOL.SetKeyboardLayout(). - It tries to get curent keyboard layout from HII database. + It tries to get current keyboard layout from HII database. @param Event Event being signaled. @param Context Points to USB_KB_DEV instance. @@ -1084,7 +1084,7 @@ KeyboardHandler ( // // Handle modifier key's pressing or releasing situation. - // According to USB HID Firmware spec, Byte 0 uses folloing map of Modifier keys: + // According to USB HID Firmware spec, Byte 0 uses following map of Modifier keys: // Bit0: Left Control, Keycode: 0xe0 // Bit1: Left Shift, Keycode: 0xe1 // Bit2: Left Alt, Keycode: 0xe2 diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h index 601fdd0c92..811f136b65 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h @@ -108,7 +108,7 @@ ReleaseKeyboardLayoutResources ( This function is the handler function for USB keyboard's asynchronous interrupt transfer to manage the keyboard. It parses the USB keyboard input report, and inserts data to - keyboard buffer according to state of modifer keys and normal keys. Timer for repeat key + keyboard buffer according to state of modifier keys and normal keys. Timer for repeat key is also set accordingly. @param Data A pointer to a buffer that is filled with key data which is -- 2.39.2