pid: zone split out builders
To enable unit-testing, split the builders into their own
object files.
Tested: Ran on quanta-q71l board and it behaved as expected.
Change-Id: I92168ec9ae4946d12328e9c0b94a36bb89d0f718
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/pid/fancontroller.cpp b/pid/fancontroller.cpp
index b0b300f..340c6d0 100644
--- a/pid/fancontroller.cpp
+++ b/pid/fancontroller.cpp
@@ -22,7 +22,7 @@
#include "zone.hpp"
std::unique_ptr<PIDController> FanController::CreateFanPid(
- std::shared_ptr<PIDZone> owner,
+ PIDZone* owner,
const std::string& id,
std::vector<std::string>& inputs,
ec::pidinfo initial)