LEDS: Get the service names for all physical LED dbus paths at once

Previous code made a call to get the service name for every physical
LED and that was a little costly. This patch changes it to get the
service names of all the physical LED dbus paths and uses it.

This is done everytime a group of LEDs are to be manipulated.

Fixes openbmc/phosphor-led-manager#4

Change-Id: I5ce455f683a38eae7f9b383013f5729ec7dd7fae
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2 files changed