psu-ng: Refactor CML fault detection
Split off CML fault checking of STATUS_WORD into its own function.
Change-Id: I845fe0dbcc86f085057bd5128303dde04cd9057f
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 04d73f7..1d1e105 100644
--- a/phosphor-power-supply/power_supply.hpp
+++ b/phosphor-power-supply/power_supply.hpp
@@ -491,6 +491,11 @@
size_t readFail = 0;
/**
+ * @brief Examine STATUS_WORD for CML (communication, memory, logic fault).
+ */
+ void analyzeCMLFault();
+
+ /**
* @brief Examine STATUS_WORD for temperature fault.
*/
void analyzeTemperatureFault();