psu-ng: Change the GPIOReader class to GPIOInterface

The GPIOReader class only contains a read function. A new write function
will be added so it makes sense for the class to be named Interface
instead of Reader.
Change GPIOReader to GPIOInterface, and change the base class from
GPIOInterface to GPIOInterfaceBase.

Tested: Ran CI.

Change-Id: I2a4abdabe0136a7f73337f0d054d2dd79712f53c
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/phosphor-power-supply/util.cpp b/phosphor-power-supply/util.cpp
index 858d1a3..41a7109 100644
--- a/phosphor-power-supply/util.cpp
+++ b/phosphor-power-supply/util.cpp
@@ -11,7 +11,7 @@
     return util;
 }
 
-GPIOReader::GPIOReader(const std::string& namedGpio)
+GPIOInterface::GPIOInterface(const std::string& namedGpio)
 {
     try
     {
@@ -29,18 +29,18 @@
     }
 }
 
-std::unique_ptr<GPIOInterface>
-    GPIOReader::createGPIO(const std::string& namedGpio)
+std::unique_ptr<GPIOInterfaceBase>
+    GPIOInterface::createGPIO(const std::string& namedGpio)
 {
-    return std::make_unique<GPIOReader>(namedGpio);
+    return std::make_unique<GPIOInterface>(namedGpio);
 }
 
-std::string GPIOReader::getName() const
+std::string GPIOInterface::getName() const
 {
     return line.name();
 }
 
-int GPIOReader::read()
+int GPIOInterface::read()
 {
     using namespace phosphor::logging;
 
@@ -81,9 +81,9 @@
     return value;
 }
 
-std::unique_ptr<GPIOInterface> createGPIO(const std::string& namedGpio)
+std::unique_ptr<GPIOInterfaceBase> createGPIO(const std::string& namedGpio)
 {
-    return GPIOReader::createGPIO(namedGpio);
+    return GPIOInterface::createGPIO(namedGpio);
 }
 
 } // namespace phosphor::power::psu