diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2021-12-05 14:53:55 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | 731c67e1d77b7741a91762d17659fc9fbcb9e305 (patch) | |
tree | 74c09d31d65dbaf66cc98dfe99b0837a71e6db31 /DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c | |
parent | 7c342378317039e632d9a1a5d4cf7c21aec8cb7a (diff) | |
download | edk2-731c67e1d77b7741a91762d17659fc9fbcb9e305.tar.gz edk2-731c67e1d77b7741a91762d17659fc9fbcb9e305.tar.bz2 edk2-731c67e1d77b7741a91762d17659fc9fbcb9e305.zip |
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>
Diffstat (limited to 'DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c')
-rw-r--r-- | DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c | 83 |
1 files changed, 49 insertions, 34 deletions
diff --git a/DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c b/DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c index 6f9e3f6f28..e6802d211e 100644 --- a/DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c +++ b/DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c @@ -39,21 +39,22 @@ EFI_STATUS
EFIAPI
AmlDeviceOpUpdateName (
- IN AML_OBJECT_NODE_HANDLE DeviceOpNode,
- IN CHAR8 * NewNameString
+ IN AML_OBJECT_NODE_HANDLE DeviceOpNode,
+ IN CHAR8 *NewNameString
)
{
- EFI_STATUS Status;
+ EFI_STATUS Status;
- AML_DATA_NODE_HANDLE DeviceNameDataNode;
- CHAR8 * NewAmlNameString;
- UINT32 NewAmlNameStringSize;
+ AML_DATA_NODE_HANDLE DeviceNameDataNode;
+ CHAR8 *NewAmlNameString;
+ UINT32 NewAmlNameStringSize;
// Check the input node is an object node.
if ((DeviceOpNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)DeviceOpNode) != EAmlNodeObject) ||
(!AmlNodeHasOpCode (DeviceOpNode, AML_EXT_OP, AML_EXT_DEVICE_OP)) ||
- (NewNameString == NULL)) {
+ (NewNameString == NULL))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -66,7 +67,8 @@ AmlDeviceOpUpdateName ( );
if ((DeviceNameDataNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)DeviceNameDataNode) != EAmlNodeData) ||
- (!AmlNodeHasDataType (DeviceNameDataNode, EAmlNodeDataTypeNameString))) {
+ (!AmlNodeHasDataType (DeviceNameDataNode, EAmlNodeDataTypeNameString)))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -87,7 +89,7 @@ AmlDeviceOpUpdateName ( Status = AmlUpdateDataNode (
DeviceNameDataNode,
EAmlNodeDataTypeNameString,
- (UINT8*)NewAmlNameString,
+ (UINT8 *)NewAmlNameString,
NewAmlNameStringSize
);
ASSERT_EFI_ERROR (Status);
@@ -124,7 +126,8 @@ AmlNameOpUpdateInteger ( if ((NameOpNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)NameOpNode) != EAmlNodeObject) ||
- (!AmlNodeHasOpCode (NameOpNode, AML_NAME_OP, 0))) {
+ (!AmlNodeHasOpCode (NameOpNode, AML_NAME_OP, 0)))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -138,7 +141,8 @@ AmlNameOpUpdateInteger ( EAmlParseIndexTerm1
);
if ((IntegerOpNode == NULL) ||
- (AmlGetNodeType ((AML_NODE_HANDLE)IntegerOpNode) != EAmlNodeObject)) {
+ (AmlGetNodeType ((AML_NODE_HANDLE)IntegerOpNode) != EAmlNodeObject))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -170,8 +174,8 @@ AmlNameOpUpdateInteger ( EFI_STATUS
EFIAPI
AmlNameOpUpdateString (
- IN AML_OBJECT_NODE_HANDLE NameOpNode,
- IN CONST CHAR8 * NewName
+ IN AML_OBJECT_NODE_HANDLE NameOpNode,
+ IN CONST CHAR8 *NewName
)
{
EFI_STATUS Status;
@@ -180,7 +184,8 @@ AmlNameOpUpdateString ( if ((NameOpNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)NameOpNode) != EAmlNodeObject) ||
- (!AmlNodeHasOpCode (NameOpNode, AML_NAME_OP, 0))) {
+ (!AmlNodeHasOpCode (NameOpNode, AML_NAME_OP, 0)))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -193,7 +198,8 @@ AmlNameOpUpdateString ( EAmlParseIndexTerm1
);
if ((StringOpNode == NULL) ||
- (AmlGetNodeType ((AML_NODE_HANDLE)StringOpNode) != EAmlNodeObject)) {
+ (AmlGetNodeType ((AML_NODE_HANDLE)StringOpNode) != EAmlNodeObject))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -205,7 +211,8 @@ AmlNameOpUpdateString ( EAmlParseIndexTerm0
);
if ((StringDataNode == NULL) ||
- (AmlGetNodeType ((AML_NODE_HANDLE)StringDataNode) != EAmlNodeData)) {
+ (AmlGetNodeType ((AML_NODE_HANDLE)StringDataNode) != EAmlNodeData))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -214,7 +221,7 @@ AmlNameOpUpdateString ( Status = AmlUpdateDataNode (
StringDataNode,
EAmlNodeDataTypeString,
- (UINT8*)NewName,
+ (UINT8 *)NewName,
(UINT32)AsciiStrLen (NewName) + 1
);
ASSERT_EFI_ERROR (Status);
@@ -250,8 +257,8 @@ AmlNameOpUpdateString ( EFI_STATUS
EFIAPI
AmlNameOpGetFirstRdNode (
- IN AML_OBJECT_NODE_HANDLE NameOpNode,
- OUT AML_DATA_NODE_HANDLE * OutRdNode
+ IN AML_OBJECT_NODE_HANDLE NameOpNode,
+ OUT AML_DATA_NODE_HANDLE *OutRdNode
)
{
AML_OBJECT_NODE_HANDLE BufferOpNode;
@@ -260,7 +267,8 @@ AmlNameOpGetFirstRdNode ( if ((NameOpNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)NameOpNode) != EAmlNodeObject) ||
(!AmlNodeHasOpCode (NameOpNode, AML_NAME_OP, 0)) ||
- (OutRdNode == NULL)) {
+ (OutRdNode == NULL))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -275,7 +283,8 @@ AmlNameOpGetFirstRdNode ( );
if ((BufferOpNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)BufferOpNode) != EAmlNodeObject) ||
- (!AmlNodeHasOpCode (BufferOpNode, AML_BUFFER_OP, 0))) {
+ (!AmlNodeHasOpCode (BufferOpNode, AML_BUFFER_OP, 0)))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -288,7 +297,8 @@ AmlNameOpGetFirstRdNode ( );
if ((FirstRdNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)FirstRdNode) != EAmlNodeData) ||
- (!AmlNodeHasDataType (FirstRdNode, EAmlNodeDataTypeResourceData))) {
+ (!AmlNodeHasDataType (FirstRdNode, EAmlNodeDataTypeResourceData)))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -327,17 +337,18 @@ AmlNameOpGetFirstRdNode ( EFI_STATUS
EFIAPI
AmlNameOpGetNextRdNode (
- IN AML_DATA_NODE_HANDLE CurrRdNode,
- OUT AML_DATA_NODE_HANDLE * OutRdNode
+ IN AML_DATA_NODE_HANDLE CurrRdNode,
+ OUT AML_DATA_NODE_HANDLE *OutRdNode
)
{
- AML_OBJECT_NODE_HANDLE NameOpNode;
- AML_OBJECT_NODE_HANDLE BufferOpNode;
+ AML_OBJECT_NODE_HANDLE NameOpNode;
+ AML_OBJECT_NODE_HANDLE BufferOpNode;
if ((CurrRdNode == NULL) ||
(AmlGetNodeType ((AML_NODE_HANDLE)CurrRdNode) != EAmlNodeData) ||
(!AmlNodeHasDataType (CurrRdNode, EAmlNodeDataTypeResourceData)) ||
- (OutRdNode == NULL)) {
+ (OutRdNode == NULL))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -349,7 +360,8 @@ AmlNameOpGetNextRdNode ( (AML_NODE_HANDLE)CurrRdNode
);
if ((BufferOpNode == NULL) ||
- (!AmlNodeHasOpCode (BufferOpNode, AML_BUFFER_OP, 0))) {
+ (!AmlNodeHasOpCode (BufferOpNode, AML_BUFFER_OP, 0)))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -359,7 +371,8 @@ AmlNameOpGetNextRdNode ( (AML_NODE_HANDLE)BufferOpNode
);
if ((NameOpNode == NULL) ||
- (!AmlNodeHasOpCode (NameOpNode, AML_NAME_OP, 0))) {
+ (!AmlNodeHasOpCode (NameOpNode, AML_NAME_OP, 0)))
+ {
ASSERT (0);
return EFI_INVALID_PARAMETER;
}
@@ -372,7 +385,9 @@ AmlNameOpGetNextRdNode ( // If the Resource Data is an End Tag, return NULL.
if (AmlNodeHasRdDataType (
*OutRdNode,
- AML_RD_BUILD_SMALL_DESC_ID (ACPI_SMALL_END_TAG_DESCRIPTOR_NAME))) {
+ AML_RD_BUILD_SMALL_DESC_ID (ACPI_SMALL_END_TAG_DESCRIPTOR_NAME)
+ ))
+ {
*OutRdNode = NULL;
}
@@ -415,8 +430,8 @@ AmlNameOpGetNextRdNode ( EFI_STATUS
EFIAPI
AmlNameOpCrsGetFirstRdNode (
- IN AML_OBJECT_NODE_HANDLE NameOpCrsNode,
- OUT AML_DATA_NODE_HANDLE * OutRdNode
+ IN AML_OBJECT_NODE_HANDLE NameOpCrsNode,
+ OUT AML_DATA_NODE_HANDLE *OutRdNode
)
{
return AmlNameOpGetFirstRdNode (NameOpCrsNode, OutRdNode);
@@ -455,8 +470,8 @@ AmlNameOpCrsGetFirstRdNode ( EFI_STATUS
EFIAPI
AmlNameOpCrsGetNextRdNode (
- IN AML_DATA_NODE_HANDLE CurrRdNode,
- OUT AML_DATA_NODE_HANDLE * OutRdNode
+ IN AML_DATA_NODE_HANDLE CurrRdNode,
+ OUT AML_DATA_NODE_HANDLE *OutRdNode
)
{
return AmlNameOpGetNextRdNode (CurrRdNode, OutRdNode);
|