]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiUsbLib/Hid.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / UefiUsbLib / Hid.c
index c14f982184f55da6da6d807adb64036a169285df..fca02838f112704fda63e228819e49274cf859d5 100644 (file)
@@ -2,13 +2,13 @@
 \r
   The library provides USB HID Class standard and specific requests defined\r
   in USB HID Firmware Specification 7 section : Requests.\r
-  \r
-  Copyright (c) 2004 - 2008, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+\r
+  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-  \r
+  http://opensource.org/licenses/bsd-license.php.\r
+\r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
@@ -16,7 +16,7 @@
 \r
 #include "UefiUsbLibInternal.h"\r
 \r
-//  \r
+//\r
 //  Hid RequestType Bits specifying characteristics of request.\r
 //  Valid values are 10100001b (0xa1) or 00100001b (0x21).\r
 //  The following description:\r
@@ -39,7 +39,7 @@
 \r
   @param  UsbIo          A pointer to the USB I/O Protocol instance for the specific USB target.\r
   @param  Interface      The index of the HID interface on the USB target.\r
-  @param  HidDescriptor  Pointer to the USB HID descriptor that was retrieved from\r
+  @param  HidDescriptor  The pointer to the USB HID descriptor that was retrieved from\r
                          the specified USB target and interface. Type EFI_USB_HID_DESCRIPTOR\r
                          is defined in the MDE Package Industry Standard include file Usb.h.\r
 \r
@@ -67,7 +67,7 @@ UsbGetHidDescriptor (
   Request.Request     = USB_REQ_GET_DESCRIPTOR;\r
   Request.Value       = (UINT16) (USB_DESC_TYPE_HID << 8);\r
   Request.Index       = Interface;\r
-  Request.Length      = sizeof (EFI_USB_HID_DESCRIPTOR);\r
+  Request.Length      = (UINT16) sizeof (EFI_USB_HID_DESCRIPTOR);\r
 \r
   Result = UsbIo->UsbControlTransfer (\r
                     UsbIo,\r
@@ -228,7 +228,7 @@ UsbSetProtocolRequest (
   EFI_USB_DEVICE_REQUEST  Request;\r
 \r
   ASSERT (UsbIo != NULL);\r
-  \r
+\r
   //\r
   // Fill Device request packet\r
   //\r
@@ -334,7 +334,7 @@ UsbGetIdleRequest (
   UINT32                  Status;\r
   EFI_STATUS              Result;\r
   EFI_USB_DEVICE_REQUEST  Request;\r
-  \r
+\r
   ASSERT (UsbIo != NULL);\r
   ASSERT (Duration != NULL);\r
   //\r