clk: ti: make clk_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 22 Aug 2017 13:11:15 +0000 (18:41 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 23 Aug 2017 22:53:25 +0000 (15:53 -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>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/ti/adpll.c
drivers/clk/ti/apll.c
drivers/clk/ti/fapll.c

index 255cafb18336aba5f2e7935daa6825d7e7123012..d5c6db44631611d3ab57d999a5035ae476df3b28 100644 (file)
@@ -486,7 +486,7 @@ static u8 ti_adpll_get_parent(struct clk_hw *hw)
        return 0;
 }
 
-static struct clk_ops ti_adpll_ops = {
+static const struct clk_ops ti_adpll_ops = {
        .prepare = ti_adpll_prepare,
        .unprepare = ti_adpll_unprepare,
        .is_prepared = ti_adpll_is_prepared,
index 06f486b3488cb435d3a3b96c8f5d475c9d3b26c3..83b148f8037c386339408f6856286cc29527e8b5 100644 (file)
@@ -304,7 +304,7 @@ static void omap2_apll_disable(struct clk_hw *hw)
        ti_clk_ll_ops->clk_writel(v, &ad->control_reg);
 }
 
-static struct clk_ops omap2_apll_ops = {
+static const struct clk_ops omap2_apll_ops = {
        .enable         = &omap2_apll_enable,
        .disable        = &omap2_apll_disable,
        .is_enabled     = &omap2_apll_is_enabled,
index 66a0d0ed8b55064ac7a888a1d2e6441d3021ceb1..071af44b1ba856d28ec4438f3373bc3ab9750475 100644 (file)
@@ -268,7 +268,7 @@ static int ti_fapll_set_rate(struct clk_hw *hw, unsigned long rate,
        return 0;
 }
 
-static struct clk_ops ti_fapll_ops = {
+static const struct clk_ops ti_fapll_ops = {
        .enable = ti_fapll_enable,
        .disable = ti_fapll_disable,
        .is_enabled = ti_fapll_is_enabled,
@@ -478,7 +478,7 @@ static int ti_fapll_synth_set_rate(struct clk_hw *hw, unsigned long rate,
        return 0;
 }
 
-static struct clk_ops ti_fapll_synt_ops = {
+static const struct clk_ops ti_fapll_synt_ops = {
        .enable = ti_fapll_synth_enable,
        .disable = ti_fapll_synth_disable,
        .is_enabled = ti_fapll_synth_is_enabled,