add .clang-format
Change-Id: I94ce26d595367e08d6fb3734535bcd855f1b1473
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/sysfs.hpp b/sysfs.hpp
index 10ab28d..c1799f6 100644
--- a/sysfs.hpp
+++ b/sysfs.hpp
@@ -5,7 +5,8 @@
#include <fstream>
#include <string>
-namespace sysfs {
+namespace sysfs
+{
inline std::string make_sysfs_path(const std::string& path,
const std::string& type,
@@ -14,7 +15,8 @@
{
using namespace std::literals;
- if (entry.empty()) {
+ if (entry.empty())
+ {
return path + "/"s + type + id;
}
@@ -35,9 +37,8 @@
*
* @return Path to phandle file with value matching that in io-channels
*/
-std::string findPhandleMatch(
- const std::string& iochanneldir,
- const std::string& phandledir);
+std::string findPhandleMatch(const std::string& iochanneldir,
+ const std::string& phandledir);
/** @brief Find hwmon instances from an open-firmware device tree path
*