diff options
| author | 2024-03-01 14:46:15 -0300 | |
|---|---|---|
| committer | 2024-03-01 21:16:01 +0100 | |
| commit | 71c2cc5cbf686c2397f43cbcb51a31589bdcee7b (patch) | |
| tree | 3df5a49a4ab04e4a51c12d2de342a23cc105db64 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | power: supply: bq2415x_charger: report online status (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 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
