summaryrefslogtreecommitdiffstats
path: root/monitor/fan.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-11-17 09:37:13 -0600
committerMatthew Barth <msbarth@linux.vnet.ibm.com>2017-12-05 16:14:06 +0000
commit4d982856b445a7e1ba0ba2a349a7dbb3ed19e9aa (patch)
tree8ec0df4fb2be6436b6933232588a829fefe6e054 /monitor/fan.hpp
parent51dd1856e142d30d0d2c351f3d5eec15a11161b0 (diff)
downloadphosphor-fan-presence-4d982856b445a7e1ba0ba2a349a7dbb3ed19e9aa.tar.gz
phosphor-fan-presence-4d982856b445a7e1ba0ba2a349a7dbb3ed19e9aa.zip
Add functional property for each tach sensor
Each fan's tach sensor creates a child inventory object under the fan's inventory path containing the sensor's functional state. This child inventory object path is the fan's path plus the tach sensor's defined id. i.e.) /xyz/openbmc_project/inventory/system/chassis/motherboard/fan0/fan0_0 Change-Id: I0fe5000eadbe55d60b475ccad700b0264ed0ac75 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'monitor/fan.hpp')
-rw-r--r--monitor/fan.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp
index 5a21e31..f22bd9f 100644
--- a/monitor/fan.hpp
+++ b/monitor/fan.hpp
@@ -124,6 +124,16 @@ class Fan
*/
void timerExpired(TachSensor& sensor);
+ /**
+ * @brief Get the name of the fan
+ *
+ * @return - The fan name
+ */
+ inline const std::string& getName() const
+ {
+ return _name;
+ }
+
private:
/**
OpenPOWER on IntegriCloud