DynamicTablesPkg: Apply uncrustify changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the DynamicTablesPkg package

Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
Michael Kubacki
2021-12-05 14:53:55 -08:00
committed by mergify[bot]
parent 7c34237831
commit 731c67e1d7
85 changed files with 5347 additions and 4795 deletions

View File

@@ -23,7 +23,7 @@
UINT8
EFIAPI
AsciiFromHex (
IN UINT8 Hex
IN UINT8 Hex
)
{
if (Hex < 10) {
@@ -50,7 +50,7 @@ AsciiFromHex (
UINT8
EFIAPI
HexFromAscii (
IN CHAR8 Char
IN CHAR8 Char
)
{
if ((Char >= '0') && (Char <= '9')) {
@@ -78,10 +78,10 @@ HexFromAscii (
**/
BOOLEAN
IsValidPnpId (
IN CONST CHAR8 * Hid
IN CONST CHAR8 *Hid
)
{
UINTN Index;
UINTN Index;
if (AsciiStrLen (Hid) != 7) {
return FALSE;
@@ -113,10 +113,10 @@ IsValidPnpId (
**/
BOOLEAN
IsValidAcpiId (
IN CONST CHAR8 * Hid
IN CONST CHAR8 *Hid
)
{
UINTN Index;
UINTN Index;
if (AsciiStrLen (Hid) != 8) {
return FALSE;
@@ -153,13 +153,14 @@ IsValidAcpiId (
EFI_STATUS
EFIAPI
AmlGetEisaIdFromString (
IN CONST CHAR8 * EisaIdStr,
OUT UINT32 * EisaIdInt
IN CONST CHAR8 *EisaIdStr,
OUT UINT32 *EisaIdInt
)
{
if ((EisaIdStr == NULL) ||
(!IsValidPnpId (EisaIdStr)) ||
(EisaIdInt == NULL)) {
(EisaIdInt == NULL))
{
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -197,14 +198,14 @@ AmlGetEisaIdFromString (
Bit 3-0: 4th hex digit of product number "3"
*/
*EisaIdInt = SwapBytes32 (
((EisaIdStr[0] - 0x40) << 26) |
((EisaIdStr[1] - 0x40) << 21) |
((EisaIdStr[2] - 0x40) << 16) |
(HexFromAscii (EisaIdStr[3]) << 12) |
(HexFromAscii (EisaIdStr[4]) << 8) |
(HexFromAscii (EisaIdStr[5]) << 4) |
(HexFromAscii (EisaIdStr[6]))
);
((EisaIdStr[0] - 0x40) << 26) |
((EisaIdStr[1] - 0x40) << 21) |
((EisaIdStr[2] - 0x40) << 16) |
(HexFromAscii (EisaIdStr[3]) << 12) |
(HexFromAscii (EisaIdStr[4]) << 8) |
(HexFromAscii (EisaIdStr[5]) << 4) |
(HexFromAscii (EisaIdStr[6]))
);
return EFI_SUCCESS;
}