summaryrefslogtreecommitdiffstats
path: root/hwmon.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-04-17 12:01:50 -0500
committerMatthew Barth <msbarth@linux.ibm.com>2018-04-25 21:10:09 +0000
commitd238e2325e4791af8a2823f1cf4cc3a3002a504f (patch)
tree5cf4e264edfc722fb7bf71e7ac2a12834db33cf6 /hwmon.hpp
parent75e56c67a10e9f4c617f9c72a87deb695322e212 (diff)
downloadphosphor-hwmon-d238e2325e4791af8a2823f1cf4cc3a3002a504f.tar.gz
phosphor-hwmon-d238e2325e4791af8a2823f1cf4cc3a3002a504f.zip
Return sensor object state data as optional
Previously, the getObject function moved the sensor data passed in as a constant reference, which should not have been done. The intention of the getObject function is to retrieve the sensor's object state data. Then, the necessary sensor data and the created object state data can be appropriately handled for monitoring. This change is to remove this confusion and clearly create the sensor's object state data without modifying the sensor set data passed in to getObject. Tested: Sensor objects are still created correctly Sensor states are monitoring and updated as before Change-Id: I19fc22fa79094d749e7d5f3b2693094e245b5a4a Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'hwmon.hpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud