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:
3a85a27
)
clk: zynqmp: Mark zynqmp_clk_ops as const
author
Michal Simek
<michal.simek@amd.com>
Fri, 25 Jul 2025 12:01:20 +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.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link:
https://lore.kernel.org/r/92eb9e90189d8b96246966633478662076da7185.1753444878.git.michal.simek@amd.com
drivers/clk/clk_zynqmp.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk_zynqmp.c
b/drivers/clk/clk_zynqmp.c
index
4f67c95
..
7a433a6
100644
(file)
--- a/
drivers/clk/clk_zynqmp.c
+++ b/
drivers/clk/clk_zynqmp.c
@@
-882,7
+882,7
@@
static int zynqmp_clk_enable(struct clk *clk)
return ret;
}
-static struct clk_ops zynqmp_clk_ops = {
+static
const
struct clk_ops zynqmp_clk_ops = {
.set_rate = zynqmp_clk_set_rate,
.get_rate = zynqmp_clk_get_rate,
.enable = zynqmp_clk_enable,