sdbusplus: avoid deprecated phosphor::Timer
sdbusplus had an older type named `phosphor::Timer` which was
recently renamed to `sdbusplus::Timer`. Update the code to use
the new type alias.
Change-Id: Ied1acfff806faeb131c1f55b3cc518f117c487a9
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/storagecommands.cpp b/src/storagecommands.cpp
index cf66413..346171c 100644
--- a/src/storagecommands.cpp
+++ b/src/storagecommands.cpp
@@ -68,7 +68,7 @@
static uint16_t cacheBus = 0xFFFF;
static uint8_t cacheAddr = 0XFF;
-std::unique_ptr<phosphor::Timer> cacheTimer = nullptr;
+std::unique_ptr<sdbusplus::Timer> cacheTimer = nullptr;
// we unfortunately have to build a map of hashes in case there is a
// collision to verify our dev-id
@@ -198,7 +198,7 @@
{
if (cacheTimer == nullptr)
{
- cacheTimer = std::make_unique<phosphor::Timer>(writeFru);
+ cacheTimer = std::make_unique<sdbusplus::Timer>(writeFru);
}
}