aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2020-09-18 00:33:04 +0200
committerPavel Machek <pavel@ucw.cz>2020-09-26 21:56:40 +0200
commitd7d02b8af5bcaacec9e49993049f57faeb41689c (patch)
tree30827b675193428f6c927dcd9b2192564a2a8119 /tools/perf/scripts/python/export-to-sqlite.py
parent0b9e3572874802f0519e85832d09058fa1c9dcb7 (diff)
leds: max77650: 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 "max77650::" 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: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions