Cleanup: Use filesystem instead of experimental
The GCC version bump in Yocto 2.6 allows for use of std::filesystem
instead of std::experimental::filesystem.
Change-Id: Ibfd6c285bcbd6695e5cd4e3090ffa214fc861499
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
diff --git a/power-sequencer/ucd90160.cpp b/power-sequencer/ucd90160.cpp
index 08b8a7d..203004d 100644
--- a/power-sequencer/ucd90160.cpp
+++ b/power-sequencer/ucd90160.cpp
@@ -41,7 +41,7 @@
constexpr auto INVENTORY_OBJ_PATH = "/xyz/openbmc_project/inventory";
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
using namespace gpio;
using namespace pmbus;
using namespace phosphor::logging;
diff --git a/power-sequencer/ucd90160.hpp b/power-sequencer/ucd90160.hpp
index 6213c26..5eedda8 100644
--- a/power-sequencer/ucd90160.hpp
+++ b/power-sequencer/ucd90160.hpp
@@ -6,7 +6,7 @@
#include "types.hpp"
#include <algorithm>
-#include <experimental/filesystem>
+#include <filesystem>
#include <map>
#include <sdbusplus/bus.hpp>
#include <vector>
@@ -88,8 +88,8 @@
* @return fs::path - The gpiochip path, like
* /dev/gpiochip1
*/
- static std::experimental::filesystem::path
- findGPIODevice(const std::experimental::filesystem::path& path);
+ static std::filesystem::path
+ findGPIODevice(const std::filesystem::path& path);
/**
* Checks for VOUT faults on the device.
@@ -289,7 +289,7 @@
* The path to the GPIO device used to read
* the GPI (PGOOD) status
*/
- std::experimental::filesystem::path gpioDevice;
+ std::filesystem::path gpioDevice;
/**
* The D-Bus bus object