summaryrefslogtreecommitdiffstats
path: root/presence/fan_enclosure.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'presence/fan_enclosure.hpp')
-rw-r--r--presence/fan_enclosure.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/presence/fan_enclosure.hpp b/presence/fan_enclosure.hpp
index 8f5cfdf..8e6925a 100644
--- a/presence/fan_enclosure.hpp
+++ b/presence/fan_enclosure.hpp
@@ -1,7 +1,7 @@
#pragma once
-#include <sdbusplus/bus.hpp>
#include "fan_properties.hpp"
+#include "sdbusplus.hpp"
#include "sensor_base.hpp"
@@ -53,12 +53,9 @@ class FanEnclosure
/**
* @brief Constructs Fan Enclosure Object
*
- * @param[in] bus - Dbus bus object
* @param[in] fanProp - Fan enclosure properties
*/
- FanEnclosure(sdbusplus::bus::bus& bus,
- const phosphor::fan::Properties& fanProp) :
- bus(bus),
+ explicit FanEnclosure(const phosphor::fan::Properties& fanProp) :
invPath(std::get<0>(fanProp)),
fanDesc(std::get<1>(fanProp))
{
@@ -80,8 +77,6 @@ class FanEnclosure
std::unique_ptr<Sensor>&& sensor);
private:
- /** @brief Connection for sdbusplus bus */
- sdbusplus::bus::bus& bus;
/** @brief Inventory path for this fan enclosure */
const std::string invPath;
/** @brief Description used as 'PrettyName' on inventory object */
OpenPOWER on IntegriCloud