From 41470e56e5dce5d9d138fd2a136f0010571bc613 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Thu, 30 Nov 2017 16:03:50 +0800 Subject: 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 --- powercap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'powercap.cpp') 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 fileName = std::make_unique(OCC_HWMON_PATH); - *fileName /= OCC_MASTER_NAME; + *fileName /= occMasterName; *fileName /= "/hwmon/"; // Need to get the hwmonXX directory name, there better only be 1 dir -- cgit v1.2.1