diff options
| author | Michal Simek <[email protected]> | 2025-07-25 14:01:20 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2025-08-26 07:30:09 +0200 |
| commit | 6d491e8913f07b9ad4f9a86fdb0aab2007e72af3 (patch) | |
| tree | 61136403228a9e8ec1e8bce29abcdc360c8a924d | |
| parent | 3a85a27e34624f1b0f08979ea914e0cadfcbf74d (diff) | |
clk: zynqmp: Mark zynqmp_clk_ops as const
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 <[email protected]>
Link: https://lore.kernel.org/r/92eb9e90189d8b96246966633478662076da7185.1753444878.git.michal.simek@amd.com
| -rw-r--r-- | drivers/clk/clk_zynqmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index 4f67c958d0f..7a433a667a4 100644 --- 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, |
