Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: imx: make clk_ops const

Make these const as they are only stored in the const field of a
clk_init_data structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Bhumika Goyal and committed by
Stephen Boyd
fa1da981 e90a7da4

+5 -5
+2 -2
drivers/clk/imx/clk-busy.c
··· 72 72 return ret; 73 73 } 74 74 75 - static struct clk_ops clk_busy_divider_ops = { 75 + static const struct clk_ops clk_busy_divider_ops = { 76 76 .recalc_rate = clk_busy_divider_recalc_rate, 77 77 .round_rate = clk_busy_divider_round_rate, 78 78 .set_rate = clk_busy_divider_set_rate, ··· 147 147 return ret; 148 148 } 149 149 150 - static struct clk_ops clk_busy_mux_ops = { 150 + static const struct clk_ops clk_busy_mux_ops = { 151 151 .get_parent = clk_busy_mux_get_parent, 152 152 .set_parent = clk_busy_mux_set_parent, 153 153 };
+1 -1
drivers/clk/imx/clk-gate2.c
··· 118 118 spin_unlock_irqrestore(gate->lock, flags); 119 119 } 120 120 121 - static struct clk_ops clk_gate2_ops = { 121 + static const struct clk_ops clk_gate2_ops = { 122 122 .enable = clk_gate2_enable, 123 123 .disable = clk_gate2_disable, 124 124 .disable_unused = clk_gate2_disable_unused,
+1 -1
drivers/clk/imx/clk-pllv1.c
··· 106 106 return ull; 107 107 } 108 108 109 - static struct clk_ops clk_pllv1_ops = { 109 + static const struct clk_ops clk_pllv1_ops = { 110 110 .recalc_rate = clk_pllv1_recalc_rate, 111 111 }; 112 112
+1 -1
drivers/clk/imx/clk-pllv2.c
··· 226 226 __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); 227 227 } 228 228 229 - static struct clk_ops clk_pllv2_ops = { 229 + static const struct clk_ops clk_pllv2_ops = { 230 230 .prepare = clk_pllv2_prepare, 231 231 .unprepare = clk_pllv2_unprepare, 232 232 .recalc_rate = clk_pllv2_recalc_rate,