stepwisecontroller: add stepwise info setter

Add a setter for the stepwise info.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Idf15ed3820291d5e7b5c4caea8afaf146d4b5ce9
diff --git a/pid/stepwisecontroller.cpp b/pid/stepwisecontroller.cpp
index b6703ba..c8ec219 100644
--- a/pid/stepwisecontroller.cpp
+++ b/pid/stepwisecontroller.cpp
@@ -78,10 +78,7 @@
     }
 
     auto thermal = std::make_unique<StepwiseController>(id, inputs, owner);
-
-    ec::StepwiseInfo& info = thermal->getStepwiseInfo();
-
-    info = initial;
+    thermal->setStepwiseInfo(initial);
 
     return thermal;
 }
diff --git a/pid/stepwisecontroller.hpp b/pid/stepwisecontroller.hpp
index 5b86bed..a3b3965 100644
--- a/pid/stepwisecontroller.hpp
+++ b/pid/stepwisecontroller.hpp
@@ -44,6 +44,11 @@
         return _stepwise_info;
     }
 
+    void setStepwiseInfo(const ec::StepwiseInfo& value)
+    {
+        _stepwise_info = value;
+    }
+
   protected:
     ZoneInterface* _owner;