diff options
| author | Marek BehĂșn <[email protected]> | 2020-09-18 00:33:06 +0200 |
|---|---|---|
| committer | Pavel Machek <[email protected]> | 2020-09-26 21:56:40 +0200 |
| commit | 6b8274de375b0632cfbda1081011f18738c15221 (patch) | |
| tree | a775b898a6566972ab816e86c0967b15f1214303 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | d7d02b8af5bcaacec9e49993049f57faeb41689c (diff) | |
leds: mt6323: 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.
Since init_data is passed with fwnode handle, we do not need to set
the of_node member of the newly created LED classdev.
Signed-off-by: Marek BehĂșn <[email protected]>
Cc: Sean Wang <[email protected]>
Cc: John Crispin <[email protected]>
Cc: Ryder Lee <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions