]> Git Repo - linux.git/commit
regulator: core: make regulator_class constant
authorRicardo B. Marliere <[email protected]>
Tue, 5 Mar 2024 19:00:45 +0000 (16:00 -0300)
committerMark Brown <[email protected]>
Tue, 5 Mar 2024 19:20:21 +0000 (19:20 +0000)
commit4fe6207508d6525e87149348daeafde152ba672c
treed1dfc7d56f109ad0a788f72eede180fa3199bae2
parentd73709646cafc0ea7e6cfa0bbc6fcd8a6c0f89c3
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]>
drivers/regulator/core.c
drivers/regulator/internal.h
This page took 0.051586 seconds and 4 git commands to generate.