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/ScmiBaseProtocol.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ArmPkg/Drivers/ArmScmiDxe/ScmiBaseProtocol.c') diff --git a/ArmPkg/Drivers/ArmScmiDxe/ScmiBaseProtocol.c b/ArmPkg/Drivers/ArmScmiDxe/ScmiBaseProtocol.c index d89587f9ed..c84ce97f15 100644 --- a/ArmPkg/Drivers/ArmScmiDxe/ScmiBaseProtocol.c +++ b/ArmPkg/Drivers/ArmScmiDxe/ScmiBaseProtocol.c @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2017-2018, Arm Limited. All rights reserved. + Copyright (c) 2017-2021, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -34,7 +34,7 @@ BaseGetVersion ( OUT UINT32 *Version ) { - return ScmiGetProtocolVersion (SCMI_PROTOCOL_ID_BASE, Version); + return ScmiGetProtocolVersion (ScmiProtocolIdBase, Version); } /** Return total number of SCMI protocols supported by the SCP firmware. @@ -57,7 +57,7 @@ BaseGetTotalProtocols ( EFI_STATUS Status; UINT32 *ReturnValues; - Status = ScmiGetProtocolAttributes (SCMI_PROTOCOL_ID_BASE, &ReturnValues); + Status = ScmiGetProtocolAttributes (ScmiProtocolIdBase, &ReturnValues); if (EFI_ERROR (Status)) { return Status; } @@ -91,7 +91,7 @@ BaseDiscoverVendorDetails ( SCMI_COMMAND Cmd; UINT32 PayloadLength; - Cmd.ProtocolId = SCMI_PROTOCOL_ID_BASE; + Cmd.ProtocolId = ScmiProtocolIdBase; Cmd.MessageId = MessageId; PayloadLength = 0; @@ -183,7 +183,7 @@ BaseDiscoverImplVersion ( SCMI_COMMAND Cmd; UINT32 PayloadLength; - Cmd.ProtocolId = SCMI_PROTOCOL_ID_BASE; + Cmd.ProtocolId = ScmiProtocolIdBase; Cmd.MessageId = SCMI_MESSAGE_ID_BASE_DISCOVER_IMPLEMENTATION_VERSION; PayloadLength = 0; @@ -250,7 +250,7 @@ BaseDiscoverListProtocols ( return EFI_BUFFER_TOO_SMALL; } - Cmd.ProtocolId = SCMI_PROTOCOL_ID_BASE; + Cmd.ProtocolId = ScmiProtocolIdBase; Cmd.MessageId = SCMI_MESSAGE_ID_BASE_DISCOVER_LIST_PROTOCOLS; Skip = 0; -- cgit v1.2.3