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/UsbBotPei/PeiUsbLib.h | 2 +- MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h | 10 +++++----- MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h | 2 +- MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c | 2 +- MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c | 2 +- MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c | 2 +- MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c | 8 ++++---- MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 6 +++--- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h b/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.h index 266581b80995..e06e2533a776 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.<BR> diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h index 65819e43e6bd..852e43390d81 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.h b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h index 601fdd0c92e2..811f136b65b2 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 diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c b/MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c index 5c071c661a45..2b1ca20a6314 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 9e6e748845d4..41f782a78bf9 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.<BR> diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c b/MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c index fe9e6203010e..292682a2e447 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.<BR> diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c index 27685995c238..8792a36e4722 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c @@ -583,7 +583,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. @@ -684,7 +684,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. @@ -763,7 +763,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 @@ -870,7 +870,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/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c index 7eb65b8815c1..5faf82ea579c 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 -- 2.21.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#51629): https://edk2.groups.io/g/devel/message/51629 Mute This Topic: https://groups.io/mt/65773562/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-