From 68c1868565cd38f045dfd6e686588b5d44c1dc97 Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Fri, 15 Jan 2021 17:06:41 +0000 Subject: [PATCH] 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 Reviewed-by: Sami Mujawar --- ArmPkg/Drivers/ArmScmiDxe/Scmi.c | 2 +- ArmPkg/Drivers/ArmScmiDxe/ScmiPrivate.h | 6 +++--- 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.