Follow up on Todo, move path out of base sensor
Not every sensor needs a sysfs path, because of that
move it out of the base class and into the classes that
need it.
Change-Id: I62b7df681e1ee889eb66e371d1cd6094097e9f21
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/ExitAirTempSensor.cpp b/src/ExitAirTempSensor.cpp
index 8779be0..a4aba4b 100644
--- a/src/ExitAirTempSensor.cpp
+++ b/src/ExitAirTempSensor.cpp
@@ -152,9 +152,9 @@
std::vector<thresholds::Threshold>&& thresholdData,
std::shared_ptr<ExitAirTempSensor>& parent) :
Sensor(boost::replace_all_copy(sensorName, " ", "_"),
- "" /* todo: remove arg from base*/, std::move(thresholdData),
- sensorConfiguration, "xyz.openbmc_project.Configuration.ExitAirTemp",
- cfmMaxReading, cfmMinReading),
+ std::move(thresholdData), sensorConfiguration,
+ "xyz.openbmc_project.Configuration.ExitAirTemp", cfmMaxReading,
+ cfmMinReading),
dbusConnection(conn), parent(parent), objServer(objectServer)
{
sensorInterface =
@@ -471,9 +471,9 @@
sdbusplus::asio::object_server& objectServer,
std::vector<thresholds::Threshold>&& thresholdData) :
Sensor(boost::replace_all_copy(sensorName, " ", "_"),
- "" /* todo: remove arg from base*/, std::move(thresholdData),
- sensorConfiguration, "xyz.openbmc_project.Configuration.ExitAirTemp",
- exitAirMaxReading, exitAirMinReading),
+ std::move(thresholdData), sensorConfiguration,
+ "xyz.openbmc_project.Configuration.ExitAirTemp", exitAirMaxReading,
+ exitAirMinReading),
dbusConnection(conn), objServer(objectServer)
{
sensorInterface = objectServer.add_interface(