From 462f95ec5b7ac6b6cda5cb6b91e7278c17a9e514 Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Fri, 15 Jan 2021 17:06:22 +0000 Subject: ArmPkg: Fix Ecc error 8005 for SCMI_PROTOCOL_ID 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/ScmiClockProtocol.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c') diff --git a/ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c b/ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c index 5c06e31bda..b7892bfd77 100644 --- a/ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c +++ b/ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c @@ -52,7 +52,7 @@ ClockGetVersion ( OUT UINT32 *Version ) { - return ScmiGetProtocolVersion (SCMI_PROTOCOL_ID_CLOCK, Version); + return ScmiGetProtocolVersion (ScmiProtocolIdClock, Version); } /** Return total number of clock devices supported by the clock management @@ -76,7 +76,7 @@ ClockGetTotalClocks ( EFI_STATUS Status; UINT32 *ReturnValues; - Status = ScmiGetProtocolAttributes (SCMI_PROTOCOL_ID_CLOCK, &ReturnValues); + Status = ScmiGetProtocolAttributes (ScmiProtocolIdClock, &ReturnValues); if (EFI_ERROR (Status)) { return Status; } @@ -122,7 +122,7 @@ ClockGetClockAttributes ( *MessageParams = ClockId; - Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK; + Cmd.ProtocolId = ScmiProtocolIdClock; Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_ATTRIBUTES; PayloadLength = sizeof (ClockId); @@ -203,7 +203,7 @@ ClockDescribeRates ( return Status; } - Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK; + Cmd.ProtocolId = ScmiProtocolIdClock; Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_DESCRIBE_RATES; *MessageParams++ = ClockId; @@ -320,7 +320,7 @@ ClockRateGet ( // Fill arguments for clock protocol command. *MessageParams = ClockId; - Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK; + Cmd.ProtocolId = ScmiProtocolIdClock; Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_RATE_GET; PayloadLength = sizeof (ClockId); @@ -374,7 +374,7 @@ ClockRateSet ( ClockRateSetAttributes->Rate.Low = (UINT32)Rate; ClockRateSetAttributes->Rate.High = (UINT32)(Rate >> 32); - Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK; + Cmd.ProtocolId = ScmiProtocolIdClock; Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_RATE_SET; PayloadLength = sizeof (CLOCK_RATE_SET_ATTRIBUTES); @@ -421,7 +421,7 @@ ClockEnable ( ClockConfigSetAttributes->ClockId = ClockId; ClockConfigSetAttributes->Attributes = Enable ? BIT0 : 0; - Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK; + Cmd.ProtocolId = ScmiProtocolIdClock; Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_CONFIG_SET; PayloadLength = sizeof (CLOCK_CONFIG_SET_ATTRIBUTES); -- cgit v1.2.3