diff options
author | 2024-03-28 12:59:07 +0100 | |
---|---|---|
committer | 2024-05-10 15:44:28 +0100 | |
commit | 717bbf03d28bfe50feee4c5fd7dcbe2217683888 (patch) | |
tree | 754742dc684bfc5293e90110072f326b800e86cd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | backlight: Make backlight_class constant (diff) | |
download | wireguard-linux-717bbf03d28bfe50feee4c5fd7dcbe2217683888.tar.xz wireguard-linux-717bbf03d28bfe50feee4c5fd7dcbe2217683888.zip |
backlight: lcd: Make lcd_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 lcd_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 <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/2024032809-enchanted-conducive-3677@gregkh
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions