summaryrefslogtreecommitdiffstats
path: root/env.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-01-29 09:48:47 -0800
committerPatrick Venture <venture@google.com>2018-02-01 18:55:18 +0000
commit9331ab7846750a05b90efd845935bfd3275e694c (patch)
treeed061448835b198e1330f8a78fbf2fbd4b38df70 /env.cpp
parentc8a8e0102e1bb9dd1e231f809e6327513eea3559 (diff)
downloadphosphor-hwmon-9331ab7846750a05b90efd845935bfd3275e694c.tar.gz
phosphor-hwmon-9331ab7846750a05b90efd845935bfd3275e694c.zip
Add fan pwm interface target
The current daemon only supports RPM-based fan control, whereas the hwmon interface for PWM is often present. This implements the Fan Control PWM dbus interface. This CL is not the complete solution, but if mixed with a follow-on CL that does this, I think it'll be ideal. For instance, this assumes the pwm number matches, whereas the other CL lets you specify the corresponding PWM target for the fan. Change-Id: I23aaa0619cdefba0a004ac0d26dc6b928e78f1e8 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/env.cpp b/env.cpp
index 48963f9..ab4b35c 100644
--- a/env.cpp
+++ b/env.cpp
@@ -16,9 +16,9 @@
#include <cstdlib>
#include <fstream>
-#include <string>
+
+#include "env.hpp"
#include "hwmon.hpp"
-#include "sensorset.hpp"
std::string getEnv(
const char* prefix, const SensorSet::key_type& sensor)
OpenPOWER on IntegriCloud