summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 02:33:16 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 02:33:16 +0000
commit4140a6635b4784db9d0125e96d521d01053eca2c (patch)
treeda415c19d57ca7546058a8f99c513708eaaf6e4a /MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c
parent548dda8f74d70893f9d44708b4a0b9fcbc4e2d83 (diff)
downloadedk2-platforms-4140a6635b4784db9d0125e96d521d01053eca2c.tar.xz
Coding style fix and minor improvements.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9977 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c
index e0112dd427..fa75415362 100644
--- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c
+++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/MouseHid.c
@@ -1,7 +1,7 @@
/** @file
Helper functions to parse HID report descriptor and items.
-Copyright (c) 2004 - 2008, Intel Corporation
+Copyright (c) 2004 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -92,7 +92,7 @@ GetNextHidItem (
// 1-byte data
//
if ((EndPos - StartPos) >= 1) {
- HidItem->Data.U8 = *StartPos++;
+ HidItem->Data.Uint8 = *StartPos++;
return StartPos;
}
@@ -101,7 +101,7 @@ GetNextHidItem (
// 2-byte data
//
if ((EndPos - StartPos) >= 2) {
- CopyMem (&HidItem->Data.U16, StartPos, sizeof (UINT16));
+ CopyMem (&HidItem->Data.Uint16, StartPos, sizeof (UINT16));
StartPos += 2;
return StartPos;
}
@@ -112,7 +112,7 @@ GetNextHidItem (
//
HidItem->Size = 4;
if ((EndPos - StartPos) >= 4) {
- CopyMem (&HidItem->Data.U32, StartPos, sizeof (UINT32));
+ CopyMem (&HidItem->Data.Uint32, StartPos, sizeof (UINT32));
StartPos += 4;
return StartPos;
}
@@ -145,11 +145,11 @@ GetItemData (
//
switch (HidItem->Size) {
case 1:
- return HidItem->Data.U8;
+ return HidItem->Data.Uint8;
case 2:
- return HidItem->Data.U16;
+ return HidItem->Data.Uint16;
case 4:
- return HidItem->Data.U32;
+ return HidItem->Data.Uint32;
}
return 0;
}