Remove Configuration interface prefix from utils APIs
This eliminates some repetitive verbosity from daemons that handle a lot
of different sensor types (such as hwmontempsensor and psusensor). It
also positions us to more cleanly use a single data structure for both
existing APIs like GetSensorConfiguration() and
setupPropertiesChangedMatches(), as well as upcoming I2C
device-management support.
Tested: hwmontempsensor and adcsensor on romed8hm3 continue to behave as
they did previously.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: I9d80475ca4160c8d2ff0afab942709496d51238d
diff --git a/src/ADCSensor.cpp b/src/ADCSensor.cpp
index 4d47762..eacce22 100644
--- a/src/ADCSensor.cpp
+++ b/src/ADCSensor.cpp
@@ -49,9 +49,8 @@
const std::string& sensorConfiguration,
std::optional<BridgeGpio>&& bridgeGpio) :
Sensor(escapeName(sensorName), std::move(thresholdsIn), sensorConfiguration,
- "xyz.openbmc_project.Configuration.ADC", false, false,
- maxVoltageReading / scaleFactor, minVoltageReading / scaleFactor,
- conn, readState),
+ "ADC", false, false, maxVoltageReading / scaleFactor,
+ minVoltageReading / scaleFactor, conn, readState),
objServer(objectServer), inputDev(io), waitTimer(io), path(path),
scaleFactor(scaleFactor),
sensorPollMs(static_cast<unsigned int>(pollRate * 1000)),