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/TachSensor.cpp b/src/TachSensor.cpp
index bbd382f..aeef7c5 100644
--- a/src/TachSensor.cpp
+++ b/src/TachSensor.cpp
@@ -42,10 +42,9 @@
std::vector<thresholds::Threshold>&& _thresholds,
const std::string& sensorConfiguration,
const std::pair<size_t, size_t>& limits) :
- Sensor(boost::replace_all_copy(fanName, " ", "_"), path,
- std::move(_thresholds), sensorConfiguration, objectType,
- limits.second, limits.first),
- objServer(objectServer), presence(std::move(presenceSensor)),
+ Sensor(boost::replace_all_copy(fanName, " ", "_"), std::move(_thresholds),
+ sensorConfiguration, objectType, limits.second, limits.first),
+ path(path), objServer(objectServer), presence(std::move(presenceSensor)),
redundancy(redundancy), inputDev(io, open(path.c_str(), O_RDONLY)),
waitTimer(io), errCount(0)
{