psu: Add code to get pollInterval from JSON file
Add in a helper function to open JSON file and parse out the configuration
properties. Use the helper function to get the pollInterval in the constructor.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: Ia8cf1c148a1685e2e09703c02e469a0bff034af5
diff --git a/phosphor-power-supply/configurations/witherspoon/psu_config.json b/phosphor-power-supply/configurations/witherspoon/psu_config.json
new file mode 100644
index 0000000..aecbd20
--- /dev/null
+++ b/phosphor-power-supply/configurations/witherspoon/psu_config.json
@@ -0,0 +1,3 @@
+{
+ "pollInterval" : 1000
+}