diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2020-09-19 20:02:58 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-09-26 21:56:43 +0200 |
commit | 1aeef38c6a4a87d04bf5fc596dbf91a15525c987 (patch) | |
tree | 29a7e8c218cbe8cbe00b930343b8367c1400d7a5 /drivers/nfc/mei_phy.h | |
parent | a448fcf19c9c5d3ddd9066accbd8d28c4950bb9f (diff) |
leds: lm36274: 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, nor are `color` and `function`.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Tested-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/nfc/mei_phy.h')
0 files changed, 0 insertions, 0 deletions