summaryrefslogtreecommitdiffstats
path: root/fan_speed.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-03-05 12:03:55 -0600
committerMatt Spinler <spinler@us.ibm.com>2018-03-07 13:12:07 -0600
commit626df17a5e2b7fecbdfa36045cdd19efda667f81 (patch)
tree47fc56c9683ab8ff17dca84c470f0c2c16ec6c48 /fan_speed.hpp
parent31dbe06252d4fe41815fe783e4f720ce0333cef3 (diff)
downloadphosphor-hwmon-626df17a5e2b7fecbdfa36045cdd19efda667f81.tar.gz
phosphor-hwmon-626df17a5e2b7fecbdfa36045cdd19efda667f81.zip
Add findHwmonFromDevPath()
This function can find the hwmon path from a /devices path. This path is similar to what udev lists as the device path, but with the /hwmon/hwmonN directories removed from the end. In addition, any ':' characters in the path have been converted to '--', so the code needs to convert them back. This is done because some devices are not in the device tree, and hence wouldn't have the open firmware device path that the code previously only supported. Tested: Tested with the new /devices path. Change-Id: Ic26646c6f609323cff86d4cd10bbe0a44d7d61ac Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'fan_speed.hpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud