add .clang-format
Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/pid/fancontroller.hpp b/pid/fancontroller.hpp
index 3354bb6..aaccd4b 100644
--- a/pid/fancontroller.hpp
+++ b/pid/fancontroller.hpp
@@ -1,14 +1,13 @@
#pragma once
+#include "controller.hpp"
+#include "ec/pid.hpp"
+#include "fan.hpp"
+
#include <memory>
#include <string>
#include <vector>
-#include "controller.hpp"
-#include "fan.hpp"
-#include "ec/pid.hpp"
-
-
/*
* A FanController is a PID controller that reads a number of fans and given
* the output then tries to set them to the goal values set by the thermal
@@ -16,36 +15,33 @@
*/
class FanController : public PIDController
{
- public:
- static std::unique_ptr<PIDController> CreateFanPid(
- ZoneInterface* owner,
- const std::string& id,
- std::vector<std::string>& inputs,
- ec::pidinfo initial);
+ public:
+ static std::unique_ptr<PIDController>
+ CreateFanPid(ZoneInterface* owner, const std::string& id,
+ std::vector<std::string>& inputs, ec::pidinfo initial);
- FanController(const std::string& id,
- std::vector<std::string>& inputs,
- ZoneInterface* owner)
- : PIDController(id, owner),
- _inputs(inputs),
- _direction(FanSpeedDirection::NEUTRAL)
- { }
+ FanController(const std::string& id, std::vector<std::string>& inputs,
+ ZoneInterface* owner) :
+ PIDController(id, owner),
+ _inputs(inputs), _direction(FanSpeedDirection::NEUTRAL)
+ {
+ }
- float input_proc(void) override;
- float setpt_proc(void) override;
- void output_proc(float value) override;
+ float input_proc(void) override;
+ float setpt_proc(void) override;
+ void output_proc(float value) override;
- FanSpeedDirection getFanDirection(void) const
- {
- return _direction;
- }
+ FanSpeedDirection getFanDirection(void) const
+ {
+ return _direction;
+ }
- void setFanDirection(FanSpeedDirection direction)
- {
- _direction = direction;
- };
+ void setFanDirection(FanSpeedDirection direction)
+ {
+ _direction = direction;
+ };
- private:
- std::vector<std::string> _inputs;
- FanSpeedDirection _direction;
+ private:
+ std::vector<std::string> _inputs;
+ FanSpeedDirection _direction;
};