s/PIDZone/DbusPidZone/g
Renamed PIDZone to DbusPidZone because this object builds in via
inheritance a Dbus implementation of the Mode control interface.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ifc6c11db4952de5909f0e556c41ec25eee217408
diff --git a/pid/builder.cpp b/pid/builder.cpp
index b76d134..a5f0ef1 100644
--- a/pid/builder.cpp
+++ b/pid/builder.cpp
@@ -39,12 +39,12 @@
return std::string(objectPath) + std::to_string(zone);
}
-std::unordered_map<int64_t, std::unique_ptr<PIDZone>>
+std::unordered_map<int64_t, std::unique_ptr<DbusPidZone>>
buildZones(const std::map<int64_t, conf::PIDConf>& zonePids,
std::map<int64_t, struct conf::ZoneConfig>& zoneConfigs,
SensorManager& mgr, sdbusplus::bus::bus& modeControlBus)
{
- std::unordered_map<int64_t, std::unique_ptr<PIDZone>> zones;
+ std::unordered_map<int64_t, std::unique_ptr<DbusPidZone>> zones;
for (const auto& zi : zonePids)
{
@@ -66,7 +66,7 @@
const conf::PIDConf& pidConfig = zi.second;
- auto zone = std::make_unique<PIDZone>(
+ auto zone = std::make_unique<DbusPidZone>(
zoneId, zoneConf->second.minThermalOutput,
zoneConf->second.failsafePercent, mgr, modeControlBus,
getControlPath(zi.first).c_str(), deferSignals);