add .clang-format
Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/sysfs/sysfswrite.hpp b/sysfs/sysfswrite.hpp
index 989f800..9510dff 100644
--- a/sysfs/sysfswrite.hpp
+++ b/sysfs/sysfswrite.hpp
@@ -1,10 +1,9 @@
#pragma once
-#include <string>
-
#include "interfaces.hpp"
#include "sysfs/util.hpp"
+#include <string>
/*
* A WriteInterface that is expecting a path that's sysfs, but really could be
@@ -12,29 +11,28 @@
*/
class SysFsWritePercent : public WriteInterface
{
- public:
- SysFsWritePercent(const std::string& writepath, int64_t min,
- int64_t max)
- : WriteInterface(min, max),
- _writepath(FixupPath(writepath))
- { }
+ public:
+ SysFsWritePercent(const std::string& writepath, int64_t min, int64_t max) :
+ WriteInterface(min, max), _writepath(FixupPath(writepath))
+ {
+ }
- void write(double value) override;
+ void write(double value) override;
- private:
- std::string _writepath;
+ private:
+ std::string _writepath;
};
class SysFsWrite : public WriteInterface
{
- public:
- SysFsWrite(const std::string& writepath, int64_t min, int64_t max)
- : WriteInterface(min, max),
- _writepath(FixupPath(writepath))
- { }
+ public:
+ SysFsWrite(const std::string& writepath, int64_t min, int64_t max) :
+ WriteInterface(min, max), _writepath(FixupPath(writepath))
+ {
+ }
- void write(double value) override;
+ void write(double value) override;
- private:
- std::string _writepath;
+ private:
+ std::string _writepath;
};