psu-ng: Refactor IOUT_OC_FAULT detection
Split off code checking for IOUT_OC fault in STATUS_WORD to its own
function.
Change-Id: I4925149b0b1f9bce2400c83eb2808aeba0f7d1cc
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
diff --git a/phosphor-power-supply/power_supply.hpp b/phosphor-power-supply/power_supply.hpp
index aa31de3..ae4a02c 100644
--- a/phosphor-power-supply/power_supply.hpp
+++ b/phosphor-power-supply/power_supply.hpp
@@ -511,6 +511,14 @@
*/
void analyzeVoutOVFault();
+ /*
+ * @brief Examine STATUS_WORD value read for IOUT_OC_FAULT.
+ *
+ * "An output overcurrent fault has occurred." If it is on, and fault not
+ * set, trace STATUS_WORD, STATUS_MFR_SPECIFIC, and STATUS_IOUT values.
+ */
+ void analyzeIoutOCFault();
+
/**
* @brief Examine STATUS_WORD for temperature fault.
*/