leds: as3645a: Use generic support for composing LED names
authorJacek Anaszewski <jacek.anaszewski@gmail.com>
Sun, 9 Jun 2019 18:19:04 +0000 (20:19 +0200)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Thu, 25 Jul 2019 18:08:00 +0000 (20:08 +0200)
commitb1f24498f187cf807faf3b677ffee183a6579a20
tree575a381a7e6a9505ab8e0ab6a5b8730597b9eab0
parent5b95cb0cbf6451d80c1385e1e3198e2730a3a59c
leds: as3645a: Use generic support for composing LED names

Switch to using generic LED support for composing LED class
device name.

After switching to new led_classdev_register_ext() the validity
of struct led_classdev's name property is no longer guaranteed,
and therefore rely on struct device's kobj.name instead.

Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-as3645a.c