From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.120]) by mx.groups.io with SMTP id smtpd.web11.6434.1581037758984357112 for ; Thu, 06 Feb 2020 17:09:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W2zkKyJ2; spf=pass (domain: redhat.com, ip: 207.211.31.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581037758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+Q6EAO48FwuKvgnXMwHjSHxJhyERdZxOpXmXsjGdJYc=; b=W2zkKyJ2naxBTCO0ef9k0pLmUh/2jvqRYLokFW7qCfFVXTSnTt4cFeUqKQXOhXvp+rq3cP W8eNUD4binJaoS5ogNykNnXrUtKvayz+6JtS+eP5Dvf3tiAvVEu7fCCZpFhs96wIlkp5fE o9cE8HY0Ax3D4EzKQ9XvPzckVYDPQd4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-347-ztT_QUK2PQGmuVX1y6oAHw-1; Thu, 06 Feb 2020 20:09:13 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D53081088382; Fri, 7 Feb 2020 01:09:12 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-120.brq.redhat.com [10.40.204.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7EB095C1BB; Fri, 7 Feb 2020 01:09:09 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Laszlo Ersek , Eric Dong Subject: [PATCH v3 22/78] MdeModulePkg/Usb: Fix various typos Date: Fri, 7 Feb 2020 02:07:35 +0100 Message-Id: <20200207010831.9046-23-philmd@redhat.com> In-Reply-To: <20200207010831.9046-1-philmd@redhat.com> References: <20200207010831.9046-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: ztT_QUK2PQGmuVX1y6oAHw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Antoine Coeur 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 --- 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. =20 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
=20 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 =20 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. =20 @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. =20 **/ @@ -507,7 +507,7 @@ USBKeyboardSetState ( @param NotifyHandle Points to the unique handle assigned= to the registered notification. =20 @retval EFI_SUCCESS The notification function was regist= ered successfully. - @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for nec= esssary data structures. + @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for nec= essary data structures. @retval EFI_INVALID_PARAMETER KeyData or NotifyHandle or KeyNotifi= cationFunction is NULL. =20 **/ @@ -574,7 +574,7 @@ KbdFreeNotifyList ( @param InputData A pointer to keystroke data for the key that w= as pressed. =20 @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. =20 **/ BOOLEAN diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h b/MdeModulePkg/Bus/Us= b/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 ( =20 This function is the handler function for USB keyboard's asynchronous in= terrupt transfer to manage the keyboard. It parses the USB keyboard input report, and ins= erts data to - keyboard buffer according to state of modifer keys and normal keys. Time= r for repeat key + keyboard buffer according to state of modifier keys and normal keys. Tim= er for repeat key is also set accordingly. =20 @param Data A pointer to a buffer that is filled with key d= ata which is diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/BotPeim.c b/MdeModulePkg/Bus/Us= b/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 =3D 0; =20 // - // retrieve the the max packet length of the given endpoint + // retrieve the max packet length of the given endpoint // if (Direction =3D=3D EfiUsbDataIn) { MaxPacketLen =3D (PeiBotDev->BulkInEndpoint)->MaxPacketSize; diff --git a/MdeModulePkg/Bus/Usb/UsbBotPei/PeiAtapi.c b/MdeModulePkg/Bus/U= sb/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. =20 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
=20 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. =20 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
=20 diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c b/MdeModulePkg/Bus/Usb/= UsbKbDxe/EfiKey.c index ccb389067a61..9d1798278ef3 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. =20 @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 return= ed due to hardware errors. @retval EFI_INVALID_PARAMETER KeyData is NULL. @@ -685,7 +685,7 @@ USBKeyboardReset ( information for the key that was pressed. =20 @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. =20 @@ -764,7 +764,7 @@ USBKeyboardWaitForKey ( OldTpl =3D gBS->RaiseTPL (TPL_NOTIFY); =20 // - // WaitforKey doesn't suppor the partial key. + // WaitforKey doesn't support the partial key. // Considering if the partial keystroke is enabled, there maybe a partia= l // keystroke in the queue, so here skip the partial keystroke and get th= e // next key from the queue @@ -871,7 +871,7 @@ KbdFreeNotifyList ( @param InputData A pointer to keystroke data for the key that w= as pressed. =20 @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. =20 **/ BOOLEAN diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Us= b/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[] =3D { }; =20 // -// 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[] =3D { @@ -569,7 +569,7 @@ FindPhysicalKey ( =20 This function is registered to event of EFI_HII_SET_KEYBOARD_LAYOUT_EVEN= T_GUID group type, which will be triggered by EFI_HII_DATABASE_PROTOCOL.SetKeyb= oardLayout(). - It tries to get curent keyboard layout from HII database. + It tries to get current keyboard layout from HII database. =20 @param Event Event being signaled. @param Context Points to USB_KB_DEV instance. @@ -1084,7 +1084,7 @@ KeyboardHandler ( =20 // // Handle modifier key's pressing or releasing situation. - // According to USB HID Firmware spec, Byte 0 uses folloing map of Modif= ier keys: + // According to USB HID Firmware spec, Byte 0 uses following map of Modi= fier keys: // Bit0: Left Control, Keycode: 0xe0 // Bit1: Left Shift, Keycode: 0xe1 // Bit2: Left Alt, Keycode: 0xe2 --=20 2.21.1