leds: lm3692x: 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:07:56 +0000 (20:07 +0200)
commita50ff28348934913c46feb7945571329e46c70b3
tree5389747d937e3a8786f51b8310cf2bd912eef33b
parent4dcbc8f8c59f4b618d651f5ba884ee5bf562c8de
leds: lm3692x: Use generic support for composing LED names

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

At this occassion remove initialization of struct led_classdev's
dev->of_node property in the driver, since now it will be taken from
fwnode assigned to struct led_init_data and passed to the new
devm_led_classdev_register_ext() API.

Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Tested-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm3692x.c