summaryrefslogtreecommitdiffstats
path: root/powercap.cpp
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2017-11-30 16:03:50 +0800
committerLei YU <mine260309@gmail.com>2017-12-12 17:09:02 +0800
commit41470e56e5dce5d9d138fd2a136f0010571bc613 (patch)
treee414217104ad36ec1000dfe8a6fb7e6dd107c438 /powercap.cpp
parent482e31ff8e43e0fefbd697b1985795c4d35eec74 (diff)
downloadopenpower-occ-control-41470e56e5dce5d9d138fd2a136f0010571bc613.zip
openpower-occ-control-41470e56e5dce5d9d138fd2a136f0010571bc613.tar.gz
Powercap: add p8 support
P8 uses i2c-occ and powercap is not created. Add P8 support by creating powercap object with i2c device name. Fixes openbmc/openbmc#2688 Change-Id: Ia63070d63f4392cc4b084ab628cdbdcf4206c883 Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'powercap.cpp')
-rw-r--r--powercap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/powercap.cpp b/powercap.cpp
index 0aca3e4..f2ae331 100644
--- a/powercap.cpp
+++ b/powercap.cpp
@@ -118,7 +118,7 @@ void PowerCap::writeOcc(uint32_t pcapValue)
// Create path out to master occ hwmon entry
std::unique_ptr<fs::path> fileName =
std::make_unique<fs::path>(OCC_HWMON_PATH);
- *fileName /= OCC_MASTER_NAME;
+ *fileName /= occMasterName;
*fileName /= "/hwmon/";
// Need to get the hwmonXX directory name, there better only be 1 dir
OpenPOWER on IntegriCloud