add .clang-format
Add .clang-format for automatic style.
Change-Id: I6d240009370179b5b8f1f646b0476a059ec6aa85
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/cfam_access.hpp b/cfam_access.hpp
index 88dcc77..131376c 100644
--- a/cfam_access.hpp
+++ b/cfam_access.hpp
@@ -1,8 +1,9 @@
#pragma once
-#include <memory>
#include "targeting.hpp"
+#include <memory>
+
namespace openpower
{
namespace cfam
@@ -24,9 +25,7 @@
* @param[in] data - The data to write
*/
void writeReg(const std::unique_ptr<openpower::targeting::Target>& target,
- cfam_address_t address,
- cfam_data_t data);
-
+ cfam_address_t address, cfam_data_t data);
/**
* @brief Reads a CFAM (Common FRU Access Macro) register in a P9.
@@ -37,10 +36,8 @@
* @param[in] address - The register address to read
* @return - The register data
*/
-cfam_data_t readReg(
- const std::unique_ptr<openpower::targeting::Target>& target,
- cfam_address_t address);
-
+cfam_data_t readReg(const std::unique_ptr<openpower::targeting::Target>& target,
+ cfam_address_t address);
/**
* @brief Writes a CFAM (Common FRU Access Macro) register in a P9
@@ -57,9 +54,7 @@
*/
void writeRegWithMask(
const std::unique_ptr<openpower::targeting::Target>& target,
- cfam_address_t address,
- cfam_data_t data,
- cfam_mask_t mask);
-}
-}
-}
+ cfam_address_t address, cfam_data_t data, cfam_mask_t mask);
+} // namespace access
+} // namespace cfam
+} // namespace openpower