]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/SmbusLib.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Library / SmbusLib.h
index 35b1ff9751548b627a628afb9b7e10144eb052af..0ccd0d33d62d48a179fcbdba4d73ad13dd731e83 100644 (file)
@@ -24,7 +24,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
   @param  Pec             TRUE if Packet Error Checking is enabled.  Otherwise FALSE.\r
 \r
 **/\r
-#define SMBUS_LIB_ADDRESS(SlaveAddress,Command,Length,Pec)  \\r
+#define SMBUS_LIB_ADDRESS(SlaveAddress, Command, Length, Pec)  \\r
   ( ((Pec) ? BIT22: 0)                  | \\r
     (((SlaveAddress) & 0x7f) << 1)      | \\r
     (((Command)      & 0xff) << 8)      | \\r
@@ -36,35 +36,35 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
   @param SmBusAddress   Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC\r
 **/\r
-#define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress)      (((SmBusAddress) >> 1)  & 0x7f)\r
+#define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress)  (((SmBusAddress) >> 1)  & 0x7f)\r
 \r
 /**\r
   Macro that returns the SMBUS Command value from an SmBusAddress Parameter value.\r
 \r
   @param SmBusAddress   Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC\r
 **/\r
-#define SMBUS_LIB_COMMAND(SmBusAddress)            (((SmBusAddress) >> 8)  & 0xff)\r
+#define SMBUS_LIB_COMMAND(SmBusAddress)  (((SmBusAddress) >> 8)  & 0xff)\r
 \r
 /**\r
   Macro that returns the SMBUS Data Length value from an SmBusAddress Parameter value.\r
 \r
   @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC\r
 **/\r
-#define SMBUS_LIB_LENGTH(SmBusAddress)             (((SmBusAddress) >> 16) & 0x3f)\r
+#define SMBUS_LIB_LENGTH(SmBusAddress)  (((SmBusAddress) >> 16) & 0x3f)\r
 \r
 /**\r
   Macro that returns the SMBUS PEC value from an SmBusAddress Parameter value.\r
 \r
   @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC\r
 **/\r
-#define SMBUS_LIB_PEC(SmBusAddress)                ((BOOLEAN) (((SmBusAddress) & BIT22) != 0))\r
+#define SMBUS_LIB_PEC(SmBusAddress)  ((BOOLEAN) (((SmBusAddress) & BIT22) != 0))\r
 \r
 /**\r
   Macro that returns the set of reserved bits from an SmBusAddress Parameter value.\r
 \r
   @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC\r
 **/\r
-#define SMBUS_LIB_RESERVED(SmBusAddress)           ((SmBusAddress) & ~(BIT23 - 2))\r
+#define SMBUS_LIB_RESERVED(SmBusAddress)  ((SmBusAddress) & ~(BIT23 - 2))\r
 \r
 /**\r
   Executes an SMBUS quick read command.\r
@@ -93,8 +93,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 VOID\r
 EFIAPI\r
 SmBusQuickRead (\r
-  IN  UINTN                     SmBusAddress,\r
-  OUT RETURN_STATUS             *Status       OPTIONAL\r
+  IN  UINTN          SmBusAddress,\r
+  OUT RETURN_STATUS  *Status       OPTIONAL\r
   );\r
 \r
 /**\r
@@ -124,8 +124,8 @@ SmBusQuickRead (
 VOID\r
 EFIAPI\r
 SmBusQuickWrite (\r
-  IN  UINTN                     SmBusAddress,\r
-  OUT RETURN_STATUS             *Status       OPTIONAL\r
+  IN  UINTN          SmBusAddress,\r
+  OUT RETURN_STATUS  *Status       OPTIONAL\r
   );\r
 \r
 /**\r
@@ -487,5 +487,4 @@ SmBusBlockProcessCall (
   OUT RETURN_STATUS  *Status        OPTIONAL\r
   );\r
 \r
-\r
 #endif\r