platform-mc: use Sensor.Value interface name
Instead of re-defining the interface name, pull it from the PDI header.
Tested: Inspection only.
Change-Id: Ieeb5752daefea73d8253d2635ddc56e41c65d21a
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/platform-mc/numeric_sensor.cpp b/platform-mc/numeric_sensor.cpp
index cfbb4d3..a964224 100644
--- a/platform-mc/numeric_sensor.cpp
+++ b/platform-mc/numeric_sensor.cpp
@@ -187,7 +187,7 @@
try
{
std::string tmp{};
- std::string interface = SENSOR_VALUE_INTF;
+ std::string interface = ValueIntf::interface;
if (useMetricInterface)
{
interface = METRIC_VALUE_INTF;
@@ -444,7 +444,7 @@
try
{
std::string tmp{};
- std::string interface = SENSOR_VALUE_INTF;
+ std::string interface = ValueIntf::interface;
if (useMetricInterface)
{
interface = METRIC_VALUE_INTF;
diff --git a/platform-mc/numeric_sensor.hpp b/platform-mc/numeric_sensor.hpp
index 3d115b7..9abaf17 100644
--- a/platform-mc/numeric_sensor.hpp
+++ b/platform-mc/numeric_sensor.hpp
@@ -24,7 +24,6 @@
namespace platform_mc
{
-constexpr const char* SENSOR_VALUE_INTF = "xyz.openbmc_project.Sensor.Value";
constexpr const char* METRIC_VALUE_INTF = "xyz.openbmc_project.Metric.Value";
using SensorUnit = sdbusplus::xyz::openbmc_project::Sensor::server::Value::Unit;