psu-ng: Clear faults if VIN_UV and READ_VIN good

If we see that we have set the VIN_UV fault indicator, but the READ_VIN
value is returning a non-zero voltage for input, attempt to clear the
faults. This could be a latched input voltage under-voltage condition
that has now cleared.

Save off actualVoltage in PowerSupply member variable. This allows for
comparing the previous actual voltage with the new reading, to trace out
the actual voltage instead of the calculated 0/110/220 voltage.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: Ibf1642a081ccf4d4a9c4202ce2536799806af017
diff --git a/phosphor-power-supply/power_supply.hpp b/phosphor-power-supply/power_supply.hpp
index bc57a83..3cc7fcb 100644
--- a/phosphor-power-supply/power_supply.hpp
+++ b/phosphor-power-supply/power_supply.hpp
@@ -468,6 +468,10 @@
     /** @brief Will be updated with latest converted value read from READ_VIN */
     int inputVoltage = phosphor::pmbus::in_input::VIN_VOLTAGE_0;
 
+    /** @brief Will be updated with the actual voltage last read from READ_VIN
+     */
+    double actualInputVoltage = 0;
+
     /** @brief True if an error for a fault has already been logged. */
     bool faultLogged = false;