]> git.baikalelectronics.ru Git - kernel.git/commit
leds: pm8058: use struct led_init_data when registering
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:08 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:40 +0000 (21:56 +0200)
commitc34597dd68a39c979c5a17dfaa789e18ebfe7691
treebd3b080b67e0f3f3164f77e323c61b923a283a5a
parent58536ca47f70b2b9c1deb80b6a4a6b4ddf7c9bb8
leds: pm8058: use struct led_init_data when registering

By using struct led_init_data when registering we do not need to parse
`label` DT property. Moreover `label` is deprecated and if it is not
present but `color` and `function` are, LED core will compose a name
from these properties instead.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-pm8058.c