Derive PGOODMonitor from DeviceMonitor

Adding this base class so that PGOODMonitor can
fulfill its true purpose, which is checking the
UCD90160 for errors on PGOOD failures.

Change-Id: Ie0637676ae5239c677d60f14d738ff9709d2b7b0
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-sequencer/main.cpp b/power-sequencer/main.cpp
index 1f77e55..074660d 100644
--- a/power-sequencer/main.cpp
+++ b/power-sequencer/main.cpp
@@ -18,6 +18,7 @@
 #include <phosphor-logging/log.hpp>
 #include "argument.hpp"
 #include "pgood_monitor.hpp"
+#include "ucd90160.hpp"
 
 using namespace witherspoon::power;
 using namespace phosphor::logging;
@@ -56,7 +57,9 @@
     auto bus = sdbusplus::bus::new_default();
     bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL);
 
-    PGOODMonitor monitor{bus, event, interval};
+    auto device = std::make_unique<UCD90160>(0);
+
+    PGOODMonitor monitor{std::move(device), bus, event, interval};
 
     return monitor.run();
 }