LEDS: Update udev rule to pass $name than $devpath

Physical LED controller expects a sysfs path where it can find leds.
Current UDEV rule is passing $devpath and that works fine.

Because '-' is converted to '/' when systemd unit file processes it,
application needs to put a workaround to fetch the name of LED
correctly if the LED itself contains '-' in it.

Although $devpath still works to apply that workaround, it becomes
difficult for the workaround to look for a particular directory to
go beyond looking for led-name since not all LEDs would be having
/sys/devices/platform/leds/leds. However, all of those would share
'sys-class-leds' and hence passing 'sys-class-leds' with $name
makes it appropriate.

Change-Id: Iab5c71cf0c6f601a25b9b4470b46d7fc4d930223
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
1 file changed
tree: 01d978304e3b683d77b040817d7e935ac8928d2b
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE