forked from OERV-BSP/u-boot
dm: core: Mark root_info as const
root_info driver structure is not changing that's why mark them as const which ensure that structure will be moved from .data section to .rodata section. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/18d92a93a9863ed0452e82a1f8e0ff9205adb4f9.1753444878.git.michal.simek@amd.com
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static struct driver_info root_info = {
|
||||
static const struct driver_info root_info = {
|
||||
.name = "root_driver",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user