summaryrefslogtreecommitdiffstats
path: root/occ_status.hpp
diff options
context:
space:
mode:
authorEddie James <eajames@us.ibm.com>2018-02-26 13:42:45 -0600
committerEddie James <eajames@us.ibm.com>2018-03-19 11:15:30 -0500
commite7d976b4d28ad30f563f300322df1dc6c4c38017 (patch)
treeb2ebe761e54cc01a48c3f3bbefeb44e33ab0beb7 /occ_status.hpp
parent1111087e39e61fb220b987542643ad9bf0a100c7 (diff)
downloadopenpower-occ-control-e7d976b4d28ad30f563f300322df1dc6c4c38017.tar.gz
openpower-occ-control-e7d976b4d28ad30f563f300322df1dc6c4c38017.zip
Change occ-hwmon device names
Device names changed in 4.13, so update them here. Change-Id: Ieb92f55499f3577dbfd737ea870a69dd4f351bc2 Signed-off-by: Eddie James <eajames@us.ibm.com>
Diffstat (limited to 'occ_status.hpp')
-rw-r--r--occ_status.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/occ_status.hpp b/occ_status.hpp
index d88ef6b..f14bd7d 100644
--- a/occ_status.hpp
+++ b/occ_status.hpp
@@ -30,6 +30,9 @@ using instanceID = int;
// IPMI sensor ID for a given OCC instance
using sensorID = uint8_t;
+// OCC sysfs name prefix
+const std::string sysfsName = "occ-hwmon";
+
/** @class Status
* @brief Implementation of OCC Active Status
*/
@@ -67,7 +70,7 @@ class Status : public Interface
#ifdef I2C_OCC
i2c_occ::getI2cDeviceName(path),
#else
- name + std::to_string(instance + 1),
+ sysfsName + "." + std::to_string(instance + 1),
#endif
manager,
*this,
@@ -139,9 +142,6 @@ class Status : public Interface
*/
std::function<void(bool)> callBack;
- /** @brief occ name prefix */
- std::string name = OCC_NAME;
-
/** @brief OCC instance number. Ex, 0,1, etc */
int instance;
OpenPOWER on IntegriCloud