Refactor: rename namespace witherspoon to phosphor
This repo now becomes phosphor-power, rename namespace witherspoon to
phosphor to make it generic.
Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: Icb9f8a7c33065add99f2bf42ed55745a28fa0424
diff --git a/gpio.cpp b/gpio.cpp
index 2dad86d..6adee9c 100644
--- a/gpio.cpp
+++ b/gpio.cpp
@@ -24,7 +24,7 @@
#include <phosphor-logging/log.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
-namespace witherspoon
+namespace phosphor
{
namespace gpio
{
@@ -93,7 +93,7 @@
// Make an ioctl call to request the GPIO line, which will
// return the descriptor to use to access it.
gpiohandle_request request{};
- strncpy(request.consumer_label, "witherspoon-pfault-analysis",
+ strncpy(request.consumer_label, "phosphor-power",
sizeof(request.consumer_label));
request.flags = (direction == Direction::input) ? GPIOHANDLE_REQUEST_INPUT
@@ -120,4 +120,4 @@
}
} // namespace gpio
-} // namespace witherspoon
+} // namespace phosphor