clk: mxs: make clk_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 22 Aug 2017 13:52:47 +0000 (19:22 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 2 Nov 2017 06:25:43 +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/mxs/clk-div.c
drivers/clk/mxs/clk-frac.c

index f75e989..ccebd01 100644 (file)
@@ -67,7 +67,7 @@ static int clk_div_set_rate(struct clk_hw *hw, unsigned long rate,
        return ret;
 }
 
-static struct clk_ops clk_div_ops = {
+static const struct clk_ops clk_div_ops = {
        .recalc_rate = clk_div_recalc_rate,
        .round_rate = clk_div_round_rate,
        .set_rate = clk_div_set_rate,
index f8dd10f..27b3372 100644 (file)
@@ -107,7 +107,7 @@ static int clk_frac_set_rate(struct clk_hw *hw, unsigned long rate,
        return mxs_clk_wait(frac->reg, frac->busy);
 }
 
-static struct clk_ops clk_frac_ops = {
+static const struct clk_ops clk_frac_ops = {
        .recalc_rate = clk_frac_recalc_rate,
        .round_rate = clk_frac_round_rate,
        .set_rate = clk_frac_set_rate,