sysfs: refactor findCallout

 - Export findCalloutPath so other modules can use it.
 - Change parameter to hwmon instance path to avoid
      fs::canonical outside sysfs.cpp.
 - Check for the iio-hwmon driver instead of relying on
      DT nodes having 'iio-hwmon' in them.
 - For iio devices, provide a /sys/devices path rather
      than a DT path.
 - Use existing application indenting and doxygen style.

Change-Id: I16c2dc7417eb68f7cbef44243f481df8040ec1fd
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2 files changed
tree: bc9d163b87b476e82c58538c4bf5b03b1254af27
  1. msl/
  2. test/
  3. .gitignore
  4. argument.cpp
  5. argument.hpp
  6. bootstrap.sh
  7. configure.ac
  8. env.cpp
  9. env.hpp
  10. fan_speed.cpp
  11. fan_speed.hpp
  12. hwmon.hpp
  13. interface.hpp
  14. LICENSE
  15. mainloop.cpp
  16. mainloop.hpp
  17. Makefile.am
  18. readd.cpp
  19. README.md
  20. sensorset.cpp
  21. sensorset.hpp
  22. sysfs.cpp
  23. sysfs.hpp
  24. targets.hpp
  25. thresholds.hpp
  26. 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`.