diff options
| author | Patrick Venture <venture@google.com> | 2019-02-11 10:03:35 -0800 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2019-02-11 10:03:35 -0800 |
| commit | a1c5d3741d2ac66fe4fb04401e51547338b305da (patch) | |
| tree | b166ce55bfb2d113b8cda5d7abdc2785587fe56c | |
| parent | 69c51061bf0a724c862456871299e7dbd87b574b (diff) | |
| download | phosphor-pid-control-a1c5d3741d2ac66fe4fb04401e51547338b305da.tar.gz phosphor-pid-control-a1c5d3741d2ac66fe4fb04401e51547338b305da.zip | |
sysfs: style fix on sysfswrite
Fix camelCase styling on sysfswrite.
Change-Id: I6dec7f46687a1276e756687bc9669ab163b5fdc4
Signed-off-by: Patrick Venture <venture@google.com>
| -rw-r--r-- | sysfs/sysfswrite.cpp | 4 | ||||
| -rw-r--r-- | sysfs/sysfswrite.hpp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sysfs/sysfswrite.cpp b/sysfs/sysfswrite.cpp index 6ca9b25..93a64dc 100644 --- a/sysfs/sysfswrite.cpp +++ b/sysfs/sysfswrite.cpp @@ -29,7 +29,7 @@ void SysFsWritePercent::write(double value) double ovalue = offset + minimum; std::ofstream ofs; - ofs.open(_writepath); + ofs.open(_writePath); ofs << static_cast<int64_t>(ovalue); ofs.close(); @@ -39,7 +39,7 @@ void SysFsWritePercent::write(double value) void SysFsWrite::write(double value) { std::ofstream ofs; - ofs.open(_writepath); + ofs.open(_writePath); ofs << static_cast<int64_t>(value); ofs.close(); diff --git a/sysfs/sysfswrite.hpp b/sysfs/sysfswrite.hpp index 9510dff..f877d4a 100644 --- a/sysfs/sysfswrite.hpp +++ b/sysfs/sysfswrite.hpp @@ -12,27 +12,27 @@ class SysFsWritePercent : public WriteInterface { public: - SysFsWritePercent(const std::string& writepath, int64_t min, int64_t max) : - WriteInterface(min, max), _writepath(FixupPath(writepath)) + SysFsWritePercent(const std::string& writePath, int64_t min, int64_t max) : + WriteInterface(min, max), _writePath(FixupPath(writePath)) { } void write(double value) override; private: - std::string _writepath; + 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)) + SysFsWrite(const std::string& writePath, int64_t min, int64_t max) : + WriteInterface(min, max), _writePath(FixupPath(writePath)) { } void write(double value) override; private: - std::string _writepath; + std::string _writePath; }; |

