git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d491e8
)
mailbox: zynqmp-ipi: Mark zynqmp_ipi_dest_mbox_ops as const
author
Michal Simek
<michal.simek@amd.com>
Fri, 25 Jul 2025 12:01:21 +0000
(14:01 +0200)
committer
Michal Simek
<michal.simek@amd.com>
Tue, 26 Aug 2025 05:30:09 +0000
(07:30 +0200)
Operations are not changing that's why mark them as const which ensure that
structure will be moved from .data section to .rodata section.
Also mark them as static because they are not used out of this file.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link:
https://lore.kernel.org/r/b7e5dc8841f6e904a7365f2ed45248609c007ddd.1753444878.git.michal.simek@amd.com
drivers/mailbox/zynqmp-ipi.c
patch
|
blob
|
history
diff --git
a/drivers/mailbox/zynqmp-ipi.c
b/drivers/mailbox/zynqmp-ipi.c
index
f622773
..
79266c5
100644
(file)
--- a/
drivers/mailbox/zynqmp-ipi.c
+++ b/
drivers/mailbox/zynqmp-ipi.c
@@
-241,7
+241,7
@@
static int zynqmp_ipi_probe(struct udevice *dev)
return 0;
};
-struct mbox_ops zynqmp_ipi_dest_mbox_ops = {
+st
atic const st
ruct mbox_ops zynqmp_ipi_dest_mbox_ops = {
.send = zynqmp_ipi_send,
.recv = zynqmp_ipi_recv,
};