]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseS3SmbusLib/S3SmbusLib.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / BaseS3SmbusLib / S3SmbusLib.c
index 1a7e0aef6461da290b64a3c28bc860b45288137c..899d5886d2b9bb81ba59c1a3384b8eb3c48f23b8 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
   Smbus Library Services that do SMBus transactions and also enable the operatation\r
   to be replayed during an S3 resume. This library class maps directly on top\r
-  of the SmbusLib class. \r
+  of the SmbusLib class.\r
 \r
-  Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -25,7 +25,7 @@
 #include <Library/S3SmbusLib.h>\r
 \r
 /**\r
-  Saves an SMBus operation to S3 script to be replayed on S3 resume. \r
+  Saves an SMBus operation to S3 script to be replayed on S3 resume.\r
 \r
   This function provides a standard way to save SMBus operation to S3 boot Script.\r
   The data can either be of the Length byte, word, or a block of data.\r
@@ -86,7 +86,7 @@ S3SmBusQuickRead (
   )\r
 {\r
   SmBusQuickRead (SmBusAddress, Status);\r
-  \r
+\r
   InternalSaveSmBusExecToBootScript (EfiSmbusQuickRead, SmBusAddress, 0, NULL);\r
 }\r
 \r
@@ -119,7 +119,7 @@ S3SmBusQuickWrite (
 \r
   InternalSaveSmBusExecToBootScript (EfiSmbusQuickWrite, SmBusAddress, 0, NULL);\r
 }\r
-  \r
+\r
 /**\r
   Executes an SMBUS receive byte command and saves the value in the S3 script to be replayed\r
   on S3 resume.\r
@@ -277,7 +277,7 @@ S3SmBusWriteDataByte (
   If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is not zero, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
-  \r
+\r
   @param  SmBusAddress    Address that encodes the SMBUS Slave Address,\r
                           SMBUS Command, SMBUS Data Length, and PEC.\r
   @param  Status          Return status for the executed command.\r
@@ -294,7 +294,7 @@ S3SmBusReadDataWord (
   )\r
 {\r
   UINT16  Word;\r
-  \r
+\r
   Word = SmBusReadDataWord (SmBusAddress, Status);\r
 \r
   InternalSaveSmBusExecToBootScript (EfiSmbusReadWord, SmBusAddress, 2, &Word);\r
@@ -375,7 +375,7 @@ S3SmBusProcessCall (
 \r
   InternalSaveSmBusExecToBootScript (EfiSmbusProcessCall, SmBusAddress, 2, &Value);\r
 \r
-  return Word; \r
+  return Word;\r
 }\r
 \r
 /**\r
@@ -427,7 +427,7 @@ S3SmBusReadBlock (
   The SMBUS slave address, SMBUS command, and SMBUS length fields of SmBusAddress are required.\r
   Bytes are written to the SMBUS from Buffer.\r
   The number of bytes written is returned, and will never return a value larger than 32-bytes.\r
-  If Status is not NULL, then the status of the executed command is returned in Status.  \r
+  If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is zero or greater than 32, then ASSERT().\r
   If Buffer is NULL, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
@@ -454,7 +454,7 @@ S3SmBusWriteBlock (
   Length = SmBusWriteBlock (SmBusAddress, Buffer, Status);\r
 \r
   InternalSaveSmBusExecToBootScript (EfiSmbusWriteBlock, SmBusAddress, SMBUS_LIB_LENGTH (SmBusAddress), Buffer);\r
-  \r
+\r
   return Length;\r
 }\r
 \r
@@ -493,9 +493,9 @@ S3SmBusBlockProcessCall (
   )\r
 {\r
   UINTN   Length;\r
-  \r
+\r
   Length = SmBusBlockProcessCall (SmBusAddress, WriteBuffer, ReadBuffer, Status);\r
-  \r
+\r
   InternalSaveSmBusExecToBootScript (EfiSmbusBWBRProcessCall, SmBusAddress, SMBUS_LIB_LENGTH (SmBusAddress), ReadBuffer);\r
 \r
   return Length;\r