summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Gondois <Pierre.Gondois@arm.com>2021-01-15 17:06:41 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-04-15 19:53:39 +0000
commit68c1868565cd38f045dfd6e686588b5d44c1dc97 (patch)
treef6f01e4ec58574ef63e1a004ce8c5152893bd1ce
parent462f95ec5b7ac6b6cda5cb6b91e7278c17a9e514 (diff)
downloadedk2-68c1868565cd38f045dfd6e686588b5d44c1dc97.tar.gz
edk2-68c1868565cd38f045dfd6e686588b5d44c1dc97.tar.bz2
edk2-68c1868565cd38f045dfd6e686588b5d44c1dc97.zip
ArmPkg: Fix Ecc error 8005 for SCMI_MESSAGE_TYPE
This patch fixes the following Ecc reported error: Variable name does not follow the rules: 1. First character should be upper case 2. Must contain lower case characters 3. No white space characters 4. Global variable name must start with a 'g' Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
-rw-r--r--ArmPkg/Drivers/ArmScmiDxe/Scmi.c2
-rw-r--r--ArmPkg/Drivers/ArmScmiDxe/ScmiPrivate.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/ArmPkg/Drivers/ArmScmiDxe/Scmi.c b/ArmPkg/Drivers/ArmScmiDxe/Scmi.c
index 847868a774..25f6cc3371 100644
--- a/ArmPkg/Drivers/ArmScmiDxe/Scmi.c
+++ b/ArmPkg/Drivers/ArmScmiDxe/Scmi.c
@@ -95,7 +95,7 @@ ScmiCommandExecute (
// Fill in message header.
MessageHeader = SCMI_MESSAGE_HEADER (
Command->MessageId,
- SCMI_MESSAGE_TYPE_COMMAND,
+ ScmiMessageTypeCommand,
Command->ProtocolId
);
diff --git a/ArmPkg/Drivers/ArmScmiDxe/ScmiPrivate.h b/ArmPkg/Drivers/ArmScmiDxe/ScmiPrivate.h
index 5f1225f54c..6de57a5c95 100644
--- a/ArmPkg/Drivers/ArmScmiDxe/ScmiPrivate.h
+++ b/ArmPkg/Drivers/ArmScmiDxe/ScmiPrivate.h
@@ -23,9 +23,9 @@ typedef enum {
// SCMI message types.
typedef enum {
- SCMI_MESSAGE_TYPE_COMMAND = 0,
- SCMI_MESSAGE_TYPE_DELAYED_RESPONSE = 2, // Skipping 1 is deliberate.
- SCMI_MESSAGE_TYPE_NOTIFICATION = 3
+ ScmiMessageTypeCommand = 0,
+ ScmiMessageTypeDelayedResponse = 2, // Skipping 1 is deliberate.
+ ScmiMessageTypeNotification = 3
} SCMI_MESSAGE_TYPE;
// SCMI response error codes.