diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-01 14:46:15 -0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-03-01 21:16:01 +0100 |
commit | 71c2cc5cbf686c2397f43cbcb51a31589bdcee7b (patch) | |
tree | 3df5a49a4ab04e4a51c12d2de342a23cc105db64 /tools/perf/scripts/python | |
parent | 9a451f1b028e116d037a93bf13eb8f8620994205 (diff) |
power: supply: core: make power_supply_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 power_supply_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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240301-class_cleanup-power-v1-1-97e0b7bf9c94@marliere.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions