Add associations for pwm
Pwm doesn't inheirt from Sensor as it is special, so
it needs it to be added seperate.
Tested: Saw associations on dbus
Change-Id: I2178e9346dcae845b47a013a2cc15f62e9ed9b31
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/PwmSensor.hpp b/include/PwmSensor.hpp
index 0a712fb..67aff56 100644
--- a/include/PwmSensor.hpp
+++ b/include/PwmSensor.hpp
@@ -6,7 +6,8 @@
{
public:
PwmSensor(const std::string& sysPath,
- sdbusplus::asio::object_server& objectServer);
+ sdbusplus::asio::object_server& objectServer,
+ const std::string& sensorConfiguration);
~PwmSensor();
private:
@@ -15,6 +16,7 @@
std::string name;
std::shared_ptr<sdbusplus::asio::dbus_interface> sensorInterface;
std::shared_ptr<sdbusplus::asio::dbus_interface> controlInterface;
+ std::shared_ptr<sdbusplus::asio::dbus_interface> association;
void setValue(uint32_t value);
uint32_t getValue(bool errThrow = true);
};