diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-28 12:59:07 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-05-10 15:44:28 +0100 |
commit | 717bbf03d28bfe50feee4c5fd7dcbe2217683888 (patch) | |
tree | 754742dc684bfc5293e90110072f326b800e86cd /scripts/gdb/linux/tasks.py | |
parent | cda12ba5550650daa1bab3347aea509d4f7ee361 (diff) |
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 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions