diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2020-09-18 00:33:06 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-09-26 21:56:40 +0200 |
commit | 6b8274de375b0632cfbda1081011f18738c15221 (patch) | |
tree | a775b898a6566972ab816e86c0967b15f1214303 /tools/perf/scripts/python/export-to-sqlite.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 <marek.behun@nic.cz>
Cc: Sean Wang <sean.wang@mediatek.com>
Cc: John Crispin <john@phrozen.org>
Cc: Ryder Lee <ryder.lee@mediatek.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