diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-05 09:21:17 -0300 |
---|---|---|
committer | Lee Jones <[email protected]> | 2024-05-10 15:44:28 +0100 |
commit | cda12ba5550650daa1bab3347aea509d4f7ee361 (patch) | |
tree | 3415370707cf5387b53eeef23cfc15b71e301c6f /tools/perf/util/trace-event-scripting.c | |
parent | e962f13b1e86272a5dcdaede2dfb649152e981e9 (diff) |
backlight: Make backlight_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the backlight_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Cc: Greg Kroah-Hartman <[email protected]>
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Reviewed-by: Daniel Thompson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions