ArmPkg: Fix Ecc error 8005 for SCMI_STATUS

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>
This commit is contained in:
Pierre Gondois 2021-01-15 17:07:16 +00:00 committed by mergify[bot]
parent 68c1868565
commit dc6c6397b8
2 changed files with 12 additions and 12 deletions

View File

@ -123,7 +123,7 @@ ScmiCommandExecute (
Response = (SCMI_MESSAGE_RESPONSE*)MtlGetChannelPayload (Channel); Response = (SCMI_MESSAGE_RESPONSE*)MtlGetChannelPayload (Channel);
if (Response->Status != SCMI_SUCCESS) { if (Response->Status != ScmiSuccess) {
DEBUG ((DEBUG_ERROR, "SCMI error: ProtocolId = 0x%x, MessageId = 0x%x, error = %d\n", DEBUG ((DEBUG_ERROR, "SCMI error: ProtocolId = 0x%x, MessageId = 0x%x, error = %d\n",
Command->ProtocolId, Command->ProtocolId,
Command->MessageId, Command->MessageId,

View File

@ -30,17 +30,17 @@ typedef enum {
// SCMI response error codes. // SCMI response error codes.
typedef enum { typedef enum {
SCMI_SUCCESS = 0, ScmiSuccess = 0,
SCMI_NOT_SUPPORTED = -1, ScmiNotSupported = -1,
SCMI_INVALID_PARAMETERS = -2, ScmiInvalidParameters = -2,
SCMI_DENIED = -3, ScmiDenied = -3,
SCMI_NOT_FOUND = -4, ScmiNotFound = -4,
SCMI_OUT_OF_RANGE = -5, ScmiOutOfRange = -5,
SCMI_BUSY = -6, ScmiBusy = -6,
SCMI_COMMS_ERROR = -7, ScmiCommsError = -7,
SCMI_GENERIC_ERROR = -8, ScmiGenericError = -8,
SCMI_HARDWARE_ERROR = -9, ScmiHardwareError = -9,
SCMI_PROTOCOL_ERROR = -10 ScmiProtocolError = -10
} SCMI_STATUS; } SCMI_STATUS;
// SCMI message IDs common to all protocols. // SCMI message IDs common to all protocols.