Update call out algorithm for iio hwmon instance

When readSysfsWithCallout() or writeSysfsWithCallout() get run, use the
instancePath to search for a call out path. For instances with an hwmon
driver, the passed in path should be used. For instances with an iio
driver, search for a phandle file that has a value matching to that in
the io-channels file for this phosphor-hwmon instance. If an error occurs
on the read or write, use that matching phandle path to create a call
out path.

Resolves openbmc/openbmc#1265

Change-Id: I6390d0dfb3d67ce8a55d171ca9a3cb8f3057a8c9
Signed-off-by: Brandon Wyman <v2cib530@us.ibm.com>
1 file changed
tree: 0fef6f81b32503b0cab20e919d55cc6643fc9f0d
  1. test/
  2. .gitignore
  3. argument.cpp
  4. argument.hpp
  5. bootstrap.sh
  6. configure.ac
  7. env.cpp
  8. env.hpp
  9. fan_speed.cpp
  10. fan_speed.hpp
  11. hwmon.hpp
  12. interface.hpp
  13. LICENSE
  14. mainloop.cpp
  15. mainloop.hpp
  16. Makefile.am
  17. readd.cpp
  18. README.md
  19. sensorset.cpp
  20. sensorset.hpp
  21. sysfs.cpp
  22. sysfs.hpp
  23. targets.hpp
  24. thresholds.hpp
  25. util.hpp
README.md

Exposes generic hwmon entries as DBus objects.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.