diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-05 16:00:45 -0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-03-05 19:20:21 +0000 |
commit | 4fe6207508d6525e87149348daeafde152ba672c (patch) | |
tree | d1dfc7d56f109ad0a788f72eede180fa3199bae2 /tools/perf/scripts/python | |
parent | d73709646cafc0ea7e6cfa0bbc6fcd8a6c0f89c3 (diff) |
regulator: core: make regulator_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 regulator_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]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions