regulators: Add Services& services to classes
Modify the configure() method in the System, Chassis, Device, and Rail
classes to have a new first parameter: Services& services.
Fix mock_services.hpp bug.
Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I6ef41de65d2c5b68c55edb42189ba9c0f2e436ed
diff --git a/phosphor-regulators/src/rail.hpp b/phosphor-regulators/src/rail.hpp
index 8340d07..9caafbe 100644
--- a/phosphor-regulators/src/rail.hpp
+++ b/phosphor-regulators/src/rail.hpp
@@ -17,6 +17,7 @@
#include "configuration.hpp"
#include "sensor_monitoring.hpp"
+#include "services.hpp"
#include <memory>
#include <string>
@@ -74,11 +75,13 @@
* This method should be called during the boot before regulators are
* enabled.
*
+ * @param services system services like error logging and the journal
* @param system system that contains the chassis
* @param chassis chassis that contains the device
* @param device device that contains this rail
*/
- void configure(System& system, Chassis& chassis, Device& device);
+ void configure(Services& services, System& system, Chassis& chassis,
+ Device& device);
/**
* Returns the configuration changes to apply to this rail, if any.