]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg: Fix Ecc error 8005 for SCMI_MESSAGE_ID
authorPierre Gondois <Pierre.Gondois@arm.com>
Fri, 15 Jan 2021 17:07:24 +0000 (17:07 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 15 Apr 2021 19:53:39 +0000 (19:53 +0000)
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>
ArmPkg/Drivers/ArmScmiDxe/Scmi.c
ArmPkg/Drivers/ArmScmiDxe/ScmiPrivate.h

index a1bf1b95c052e0163eb3ea1e208756c93986bdfb..3793c066366640e232b4c678af6f1446bc0ff506 100644 (file)
@@ -195,7 +195,7 @@ ScmiGetProtocolVersion (
 \r
   Status = ScmiProtocolDiscoveryCommon (\r
              ProtocolId,\r
-             SCMI_MESSAGE_ID_PROTOCOL_VERSION,\r
+             ScmiMessageIdProtocolVersion,\r
              (UINT32**)&ProtocolVersion\r
              );\r
   if (EFI_ERROR (Status)) {\r
@@ -224,7 +224,7 @@ ScmiGetProtocolAttributes (
 {\r
   return ScmiProtocolDiscoveryCommon (\r
            ProtocolId,\r
-           SCMI_MESSAGE_ID_PROTOCOL_ATTRIBUTES,\r
+           ScmiMessageIdProtocolAttributes,\r
            ReturnValues\r
            );\r
 }\r
@@ -246,7 +246,7 @@ ScmiGetProtocolMessageAttributes (
 {\r
   return ScmiProtocolDiscoveryCommon (\r
            ProtocolId,\r
-           SCMI_MESSAGE_ID_PROTOCOL_MESSAGE_ATTRIBUTES,\r
+           ScmiMessageIdProtocolMessageAttributes,\r
            ReturnValues\r
            );\r
 }\r
index 118961dbe219c2bf575731d870c855dacf1f5986..e56c9e0dc34271301840c35338d236a36c3ea31f 100644 (file)
@@ -45,9 +45,9 @@ typedef enum {
 \r
 // SCMI message IDs common to all protocols.\r
 typedef enum {\r
-  SCMI_MESSAGE_ID_PROTOCOL_VERSION            = 0x0,\r
-  SCMI_MESSAGE_ID_PROTOCOL_ATTRIBUTES         = 0x1,\r
-  SCMI_MESSAGE_ID_PROTOCOL_MESSAGE_ATTRIBUTES = 0x2\r
+  ScmiMessageIdProtocolVersion           = 0x0,\r
+  ScmiMessageIdProtocolAttributes        = 0x1,\r
+  ScmiMessageIdProtocolMessageAttributes = 0x2\r
 } SCMI_MESSAGE_ID;\r
 \r
 // Not defined in SCMI specification but will help to identify a message.\r