diff options
author | Marek BehĂșn <[email protected]> | 2020-09-20 02:25:00 +0200 |
---|---|---|
committer | Pavel Machek <[email protected]> | 2020-09-30 19:15:42 +0200 |
commit | 564ead1280d7590f0015d8225637d546e9fa94eb (patch) | |
tree | 6605c291813225e42e3613d518f562f3c197443a /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 85fc8efe85d405b80904f73e4e23184a84283753 (diff) |
leds: pca963x: 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
"pca963x:%d:%.2x:%u"
For backwards compatibility we therefore set init_data->default_label
to this value 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 <[email protected]>
Cc: Peter Meerwald <[email protected]>
Cc: Ricardo Ribalda <[email protected]>
Cc: Zahari Petkov <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions