diff options
| author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2023-08-10 21:49:05 +0400 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2023-08-18 08:43:11 +0100 |
| commit | 43a707ae58406200597b03a5be782e726b3c175b (patch) | |
| tree | 46fb8cb26855f59afa5848accac4bd53187da543 /tools/perf/scripts/python | |
| parent | leds: Remove redundant of_match_ptr() (diff) | |
| download | linux-43a707ae58406200597b03a5be782e726b3c175b.tar.gz linux-43a707ae58406200597b03a5be782e726b3c175b.zip | |
leds: Make leds_class a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the leds_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230810174905.7997-1-ivan.orlov0322@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
