Add update power supply inventory stubs and calls

This function will read values from the power supply
and put them into the inventory.

This commit doesn't deal with what is written, but it is
properties like the part and serial numbers.

It needs to be called:
* On startup, regardless of presence state.
* When a power supply is added, after the hwmon directory
  has been determined, to read the values for the new unit
* When a power supply is removed.

When the function is called when the unit isn't present,
it will just write empty values to the inventory.  This ensures
when a unit is removed that it doesn't contain stale values.

Change-Id: I432a515cf30321d1c9e327fc9c0332d1c724cf94
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2 files changed
tree: 582efcee2e8875d9cfc1f854bc21e5cedcd992c9
  1. org/
  2. power-sequencer/
  3. power-supply/
  4. test/
  5. .gitignore
  6. argument.hpp
  7. bootstrap.sh
  8. configure.ac
  9. device.hpp
  10. device_monitor.hpp
  11. elog-errors.hpp
  12. event.hpp
  13. file.hpp
  14. LICENSE
  15. Makefile.am
  16. names_values.hpp
  17. pmbus.cpp
  18. pmbus.hpp
  19. README.md
  20. timer.cpp
  21. timer.hpp
  22. utility.cpp
  23. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

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`.