diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2020-09-18 00:33:02 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-09-26 21:56:40 +0200 |
commit | 3a953dc330e9ce9c00dc040e59faf66222f0c3b2 (patch) | |
tree | 08d251e6a7dbd97bd900d03bf7b6ed41aad77039 /samples | |
parent | e4e912a349b2e194b15163bef5d70fd1e67a7769 (diff) |
leds: lm3697: 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.
Previously if the `label` DT property was not present, the code composed
name for the LED in the form
"parent_name::"
For backwards compatibility we therefore set
init_data->default_label = ":";
so that the LED will not get a different name if `label` property is not
present.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Cc: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions