summaryrefslogtreecommitdiffstats
path: root/presence
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-04-10 14:25:47 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-04-26 12:48:33 -0500
commit5cfdf94fdf0ac1167c9337cec95ba4d932ad40f7 (patch)
tree45cd297a2f3615c1dc0e160391e7ea051bfd815d /presence
parente10416eccd32893b68e7ec5fcaacc6520c014d4a (diff)
downloadphosphor-fan-presence-5cfdf94fdf0ac1167c9337cec95ba4d932ad40f7.tar.gz
phosphor-fan-presence-5cfdf94fdf0ac1167c9337cec95ba4d932ad40f7.zip
Fan control: Add getService() utility function
This function returns the service name from the mapper based on the dbus path and interface passed in. Eventually, getInvService can be removed and this call can be used instead. Change-Id: Ieb090a9b650803e8cfaf2f24143f25a4bbf1cd23 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'presence')
-rw-r--r--presence/fan_enclosure.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/presence/fan_enclosure.cpp b/presence/fan_enclosure.cpp
index 262876e..ca97c07 100644
--- a/presence/fan_enclosure.cpp
+++ b/presence/fan_enclosure.cpp
@@ -69,7 +69,7 @@ void FanEnclosure::updInventory()
std::string invService;
try
{
- invService = getInvService(bus);
+ invService = phosphor::fan::util::getInvService(bus);
}
catch (const std::runtime_error& err)
{
OpenPOWER on IntegriCloud