commit | eed951bbf737bb728006b1d248af6341abf79cd8 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Fri Sep 18 00:33:08 2020 +0200 |
committer | Pavel Machek <pavel@ucw.cz> | Sat Sep 26 21:56:40 2020 +0200 |
tree | bd3b080b67e0f3f3164f77e323c61b923a283a5a | |
parent | b23ca98af6114ee24b3ba085514677db4bfda53c [diff] |
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>