summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c
diff options
context:
space:
mode:
authorPierre Gondois <Pierre.Gondois@arm.com>2021-01-15 17:06:22 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-04-15 19:53:39 +0000
commit462f95ec5b7ac6b6cda5cb6b91e7278c17a9e514 (patch)
tree0b97e3e0e4ea2213d58b6acd2fc15ea64b11a89a /ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c
parent2f2c0a8b9ff51ba5462c9f04ef759320aa3d95d1 (diff)
downloadedk2-462f95ec5b7ac6b6cda5cb6b91e7278c17a9e514.tar.gz
edk2-462f95ec5b7ac6b6cda5cb6b91e7278c17a9e514.tar.bz2
edk2-462f95ec5b7ac6b6cda5cb6b91e7278c17a9e514.zip
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 <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c')
-rw-r--r--ArmPkg/Drivers/ArmScmiDxe/ScmiClockProtocol.c14
1 files changed, 7 insertions, 7 deletions
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);