Sensor.Value: use PDI constants
Use PDI constants instead of local definitions.
Tested: Inspection only.
Change-Id: I42c4f33a7e2f98a1adbac5a92aea4df952442990
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/dbus-sdr/sdrutils.cpp b/dbus-sdr/sdrutils.cpp
index a544dc1..e7f6566 100644
--- a/dbus-sdr/sdrutils.cpp
+++ b/dbus-sdr/sdrutils.cpp
@@ -20,12 +20,14 @@
#include <nlohmann/json.hpp>
#include <phosphor-logging/lg2.hpp>
#include <xyz/openbmc_project/ObjectMapper/common.hpp>
+#include <xyz/openbmc_project/Sensor/Value/common.hpp>
#include <fstream>
#include <optional>
#include <unordered_set>
using ObjectMapper = sdbusplus::common::xyz::openbmc_project::ObjectMapper;
+using SensorValue = sdbusplus::common::xyz::openbmc_project::sensor::Value;
#ifdef FEATURE_HYBRID_SENSORS
@@ -170,8 +172,7 @@
// Add sensors to SensorTree
static constexpr const std::array sensorInterfaces = {
- "xyz.openbmc_project.Sensor.Value",
- "xyz.openbmc_project.Sensor.ValueMutability",
+ SensorValue::interface, "xyz.openbmc_project.Sensor.ValueMutability",
"xyz.openbmc_project.Sensor.Threshold.Warning",
"xyz.openbmc_project.Sensor.Threshold.Critical"};
static constexpr const std::array vrInterfaces = {