]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: imx: make clk_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 22 Aug 2017 13:18:29 +0000 (18:48 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 2 Nov 2017 06:25:49 +0000 (23:25 -0700)
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>
drivers/clk/imx/clk-busy.c
drivers/clk/imx/clk-gate2.c
drivers/clk/imx/clk-pllv1.c
drivers/clk/imx/clk-pllv2.c

index 5cc99590f9a33a397bc1fc51ffaf821867aeb6e9..6df3389687bc0fe9e4afae264e3c825ea11bb35e 100644 (file)
@@ -72,7 +72,7 @@ static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate,
        return ret;
 }
 
-static struct clk_ops clk_busy_divider_ops = {
+static const struct clk_ops clk_busy_divider_ops = {
        .recalc_rate = clk_busy_divider_recalc_rate,
        .round_rate = clk_busy_divider_round_rate,
        .set_rate = clk_busy_divider_set_rate,
@@ -147,7 +147,7 @@ static int clk_busy_mux_set_parent(struct clk_hw *hw, u8 index)
        return ret;
 }
 
-static struct clk_ops clk_busy_mux_ops = {
+static const struct clk_ops clk_busy_mux_ops = {
        .get_parent = clk_busy_mux_get_parent,
        .set_parent = clk_busy_mux_set_parent,
 };
index db44a198a0d9999f3e998033a3f8a517035c5e74..60fc9d7a9723959e4b13185d87405a1de8e455d3 100644 (file)
@@ -118,7 +118,7 @@ static void clk_gate2_disable_unused(struct clk_hw *hw)
        spin_unlock_irqrestore(gate->lock, flags);
 }
 
-static struct clk_ops clk_gate2_ops = {
+static const struct clk_ops clk_gate2_ops = {
        .enable = clk_gate2_enable,
        .disable = clk_gate2_disable,
        .disable_unused = clk_gate2_disable_unused,
index 82fe3662b5f6d43e5bf4d8cc1acb3ea3b29048b9..703818e9001a7442ef6d5d7126f7da5ad001bca9 100644 (file)
@@ -106,7 +106,7 @@ static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw,
        return ull;
 }
 
-static struct clk_ops clk_pllv1_ops = {
+static const struct clk_ops clk_pllv1_ops = {
        .recalc_rate = clk_pllv1_recalc_rate,
 };
 
index 4aeda56ce37279006a5cb8be93f9146d7e3d56d7..c845b8c773a6c04d8d620b1f753673fcb2ccad54 100644 (file)
@@ -226,7 +226,7 @@ static void clk_pllv2_unprepare(struct clk_hw *hw)
        __raw_writel(reg, pllbase + MXC_PLL_DP_CTL);
 }
 
-static struct clk_ops clk_pllv2_ops = {
+static const struct clk_ops clk_pllv2_ops = {
        .prepare = clk_pllv2_prepare,
        .unprepare = clk_pllv2_unprepare,
        .recalc_rate = clk_pllv2_recalc_rate,