public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Kubacki, Michael A" <michael.a.kubacki@intel.com>
To: "Agyeman, Prince" <prince.agyeman@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Zhang, Shenglei" <shenglei.zhang@intel.com>,
	"Chiu, Chasel" <chasel.chiu@intel.com>,
	"Desimone, Nathaniel L" <nathaniel.l.desimone@intel.com>
Subject: Re: [edk2-platforms] [PATCH] BoardModulePkg: Fix ECC Coding Style Issues
Date: Thu, 30 Jan 2020 00:30:09 +0000	[thread overview]
Message-ID: <BY5PR11MB4484A3CDBA6C666F1AC83612B5040@BY5PR11MB4484.namprd11.prod.outlook.com> (raw)
In-Reply-To: <d95caae4e4d76a03ba64146989bb936aa4e07d72.1579022762.git.prince.agyeman@intel.com>

The copyright dates needed to be updated to 2020. I updated those locally before being pushed.

Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>

Thanks,
Michael

> -----Original Message-----
> From: Agyeman, Prince <prince.agyeman@intel.com>
> Sent: Tuesday, January 14, 2020 9:28 AM
> To: devel@edk2.groups.io
> Cc: Zhang, Shenglei <shenglei.zhang@intel.com>; Chiu, Chasel
> <chasel.chiu@intel.com>; Desimone, Nathaniel L
> <nathaniel.l.desimone@intel.com>; Kubacki, Michael A
> <michael.a.kubacki@intel.com>
> Subject: [edk2-platforms] [PATCH] BoardModulePkg: Fix ECC Coding Style
> Issues
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2453
> 
> Fixed coding style issues as reported by the ECC tool
> 
> Cc: Shenglei Zhang <shenglei.zhang@intel.com>
> Cc: Chasel Chiu <chasel.chiu@intel.com>
> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
> Cc: Michael Kubacki <michael.a.kubacki@intel.com>
> 
> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com>
> ---
>  .../BoardModulePkg/LegacySioDxe/ComponentName.h   |  5 +++++
>  .../BoardModulePkg/LegacySioDxe/LegacySioDxe.inf  |  2 ++
>  .../Intel/BoardModulePkg/LegacySioDxe/SioChip.c   |  5 +++--
>  .../Intel/BoardModulePkg/LegacySioDxe/SioDriver.c | 15 ++++++++-------
>  .../Library/BdsPs2KbcLib/BdsPs2KbcLib.c           |  6 +++---
>  .../Library/BdsPs2KbcLib/BdsPs2KbcLib.h           |  4 ++--
>  6 files changed, 23 insertions(+), 14 deletions(-)
> 
> diff --git
> a/Platform/Intel/BoardModulePkg/LegacySioDxe/ComponentName.h
> b/Platform/Intel/BoardModulePkg/LegacySioDxe/ComponentName.h
> index 85ca348701..91bc245f3a 100644
> --- a/Platform/Intel/BoardModulePkg/LegacySioDxe/ComponentName.h
> +++ b/Platform/Intel/BoardModulePkg/LegacySioDxe/ComponentName.h
> @@ -6,6 +6,9 @@
>    SPDX-License-Identifier: BSD-2-Clause-Patent  **/
> 
> +#ifndef _LEGACY_SIO_DXE_COMPONENT_NAME_H_ #define
> +_LEGACY_SIO_DXE_COMPONENT_NAME_H_
> +
>  /**
>    Retrieves a Unicode string that is the user-readable name of the EFI Driver.
> 
> @@ -85,3 +88,5 @@ SioComponentNameGetControllerName (
>    IN  CHAR8                         *Language,
>    OUT CHAR16                        **ControllerName
>    );
> +
> +#endif
> diff --git a/Platform/Intel/BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
> b/Platform/Intel/BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
> index 1d7cd92604..698d406450 100644
> --- a/Platform/Intel/BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
> +++ b/Platform/Intel/BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
> @@ -44,6 +44,8 @@
>    SioDriver.c
>    SioDriver.h
>    ComponentName.c
> +  ComponentName.h
> +  Register.h
> 
>  [Pcd]
>    gBoardModulePkgTokenSpaceGuid.PcdPs2KbMsEnable
> diff --git a/Platform/Intel/BoardModulePkg/LegacySioDxe/SioChip.c
> b/Platform/Intel/BoardModulePkg/LegacySioDxe/SioChip.c
> index b9a84ca51c..846dddf739 100644
> --- a/Platform/Intel/BoardModulePkg/LegacySioDxe/SioChip.c
> +++ b/Platform/Intel/BoardModulePkg/LegacySioDxe/SioChip.c
> @@ -145,7 +145,7 @@ DEVICE_INFO    mDeviceInfo[] = {
> 
> 
>  /**
> -  Gets the number of devices in Table of SIO Controllers mDeviceInfo
> +  Gets the number of devices in Table of SIO Controllers mDeviceInfo.
> 
>    @retval     Number of enabled devices in Table of SIO Controllers.
>  **/
> @@ -153,7 +153,8 @@ UINTN
>  EFIAPI
>  GetDeviceCount (
>    VOID
> -){
> +  )
> +{
>     UINTN        Count;
>     // Get mDeviceInfo item count
>     // -1 to account for for the end device info diff --git
> a/Platform/Intel/BoardModulePkg/LegacySioDxe/SioDriver.c
> b/Platform/Intel/BoardModulePkg/LegacySioDxe/SioDriver.c
> index 5bfdc94681..484c53e953 100644
> --- a/Platform/Intel/BoardModulePkg/LegacySioDxe/SioDriver.c
> +++ b/Platform/Intel/BoardModulePkg/LegacySioDxe/SioDriver.c
> @@ -118,13 +118,14 @@ BOOLEAN
>  EFIAPI
>  SioDeviceEnabled (
>    IN SIO_PCI_ISA_BRIDGE_DEVICE_INFO *CurrentDevice -){
> -    SIO_PCI_ISA_BRIDGE_DEVICE_INFO *Device = \
> -      (SIO_PCI_ISA_BRIDGE_DEVICE_INFO *) FixedPcdGetPtr
> (PcdSuperIoPciIsaBridgeDevice);
> -    if(CompareMem (Device, CurrentDevice, sizeof
> (SIO_PCI_ISA_BRIDGE_DEVICE_INFO)) == 0) {
> -      return TRUE;
> -    }
> -    return FALSE;
> +  )
> +{
> +  SIO_PCI_ISA_BRIDGE_DEVICE_INFO *Device;
> +  Device = (SIO_PCI_ISA_BRIDGE_DEVICE_INFO *) FixedPcdGetPtr
> +(PcdSuperIoPciIsaBridgeDevice);
> +  if(CompareMem (Device, CurrentDevice, sizeof
> (SIO_PCI_ISA_BRIDGE_DEVICE_INFO)) == 0) {
> +    return TRUE;
> +  }
> +  return FALSE;
>  }
> 
>  /**
> diff --git
> a/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c
> b/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c
> index eff10bddb4..0cf4c4d262 100644
> --- a/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c
> +++
> b/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.c
> @@ -65,7 +65,7 @@ DetectPs2Keyboard (
>      MicroSecondDelay (30);
>    }
> 
> -  if (FoundPs2Kbc == FALSE) {
> +  if (!FoundPs2Kbc) {
>      return FALSE;
>    }
> 
> @@ -126,7 +126,7 @@ IsPs2KeyboardConnected (
>    BOOLEAN Result;
>    Result = DetectPs2Keyboard ();
> 
> -  if (Result == FALSE) {
> +  if (!Result) {
>      //
>      // If there is no ps2 keyboard detected for the 1st time, retry again.
>      //
> @@ -138,7 +138,7 @@ IsPs2KeyboardConnected (
> 
>  /**
>    Updates the ConIn variable with Ps2 Keyboard device path,
> -  if it doesn't already exists in ConIn and ConInDev
> +  if it doesn't already exists in ConIn and ConInDev.
>  **/
>  VOID
>  AddPs2Keyboard (
> diff --git
> a/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.h
> b/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.h
> index d9a27e6681..a96d53b98d 100644
> --- a/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.h
> +++
> b/Platform/Intel/BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.h
> @@ -6,8 +6,8 @@
> 
>  **/
> 
> -#ifndef _PS2_KBC_LIB_H
> -#define _PS2_KBC_LIB_H
> +#ifndef _PS2_KBC_LIB_H_
> +#define _PS2_KBC_LIB_H_
> 
>  #include <Uefi.h>
>  #include <Library/UefiLib.h>
> --
> 2.19.1.windows.1


      parent reply	other threads:[~2020-01-30  0:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-14 17:27 [edk2-platforms] [PATCH] BoardModulePkg: Fix ECC Coding Style Issues Agyeman, Prince
2020-01-20  5:19 ` Chiu, Chasel
2020-01-30  0:30 ` Kubacki, Michael A [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BY5PR11MB4484A3CDBA6C666F1AC83612B5040@BY5PR11MB4484.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox