MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
1436aea4d5
commit
2f88bd3a12
@@ -7,14 +7,12 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#include "InternalSmbusLib.h"
|
||||
|
||||
|
||||
//
|
||||
// Global variable to cache pointer to Smbus protocol.
|
||||
//
|
||||
EFI_SMBUS_HC_PROTOCOL *mSmbus = NULL;
|
||||
EFI_SMBUS_HC_PROTOCOL *mSmbus = NULL;
|
||||
|
||||
/**
|
||||
The constructor function caches the pointer to Smbus protocol.
|
||||
@@ -31,13 +29,13 @@ EFI_SMBUS_HC_PROTOCOL *mSmbus = NULL;
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
SmbusLibConstructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = gBS->LocateProtocol (&gEfiSmbusHcProtocolGuid, NULL, (VOID**) &mSmbus);
|
||||
Status = gBS->LocateProtocol (&gEfiSmbusHcProtocolGuid, NULL, (VOID **)&mSmbus);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
ASSERT (mSmbus != NULL);
|
||||
|
||||
@@ -69,11 +67,11 @@ SmbusLibConstructor (
|
||||
**/
|
||||
UINTN
|
||||
InternalSmBusExec (
|
||||
IN EFI_SMBUS_OPERATION SmbusOperation,
|
||||
IN UINTN SmBusAddress,
|
||||
IN UINTN Length,
|
||||
IN OUT VOID *Buffer,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
IN EFI_SMBUS_OPERATION SmbusOperation,
|
||||
IN UINTN SmBusAddress,
|
||||
IN UINTN Length,
|
||||
IN OUT VOID *Buffer,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
RETURN_STATUS ReturnStatus;
|
||||
|
@@ -10,7 +10,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef __INTERNAL_SMBUS_LIB_H_
|
||||
#define __INTERNAL_SMBUS_LIB_H_
|
||||
|
||||
|
||||
#include <PiDxe.h>
|
||||
|
||||
#include <Protocol/SmbusHc.h>
|
||||
@@ -25,6 +24,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// Declaration for internal functions
|
||||
//
|
||||
|
||||
/**
|
||||
Executes an SMBus operation to an SMBus controller.
|
||||
|
||||
@@ -50,11 +50,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
UINTN
|
||||
InternalSmBusExec (
|
||||
IN EFI_SMBUS_OPERATION SmbusOperation,
|
||||
IN UINTN SmBusAddress,
|
||||
IN UINTN Length,
|
||||
IN OUT VOID *Buffer,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
IN EFI_SMBUS_OPERATION SmbusOperation,
|
||||
IN UINTN SmBusAddress,
|
||||
IN UINTN Length,
|
||||
IN OUT VOID *Buffer,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -72,8 +72,8 @@ InternalSmBusExec (
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
SmbusLibConstructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
);
|
||||
|
||||
#endif
|
||||
|
@@ -38,8 +38,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
VOID
|
||||
EFIAPI
|
||||
SmBusQuickRead (
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
ASSERT (!SMBUS_LIB_PEC (SmBusAddress));
|
||||
@@ -79,8 +79,8 @@ SmBusQuickRead (
|
||||
VOID
|
||||
EFIAPI
|
||||
SmBusQuickWrite (
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
ASSERT (!SMBUS_LIB_PEC (SmBusAddress));
|
||||
@@ -127,7 +127,7 @@ SmBusReceiveByte (
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
UINT8 Byte;
|
||||
UINT8 Byte;
|
||||
|
||||
ASSERT (SMBUS_LIB_COMMAND (SmBusAddress) == 0);
|
||||
ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
|
||||
@@ -176,13 +176,13 @@ SmBusSendByte (
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
UINT8 Byte;
|
||||
UINT8 Byte;
|
||||
|
||||
ASSERT (SMBUS_LIB_COMMAND (SmBusAddress) == 0);
|
||||
ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
|
||||
ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
|
||||
|
||||
Byte = Value;
|
||||
Byte = Value;
|
||||
InternalSmBusExec (EfiSmbusSendByte, SmBusAddress, 1, &Byte, Status);
|
||||
|
||||
return Value;
|
||||
@@ -223,7 +223,7 @@ SmBusReadDataByte (
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
UINT8 Byte;
|
||||
UINT8 Byte;
|
||||
|
||||
ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
|
||||
ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
|
||||
@@ -271,7 +271,7 @@ SmBusWriteDataByte (
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
UINT8 Byte;
|
||||
UINT8 Byte;
|
||||
|
||||
ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
|
||||
ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
|
||||
@@ -569,7 +569,7 @@ SmBusBlockProcessCall (
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
)
|
||||
{
|
||||
UINTN Length;
|
||||
UINTN Length;
|
||||
|
||||
ASSERT (WriteBuffer != NULL);
|
||||
ASSERT (ReadBuffer != NULL);
|
||||
|
Reference in New Issue
Block a user