diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-22 09:11:15 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-08-23 18:53:25 -0400 |
commit | 7cc566a821a0e0999209a256b80375d08db2840c (patch) | |
tree | 5c5b199add8a95952ebf6c73766d5f6f82be5805 | |
parent | 535b1100d169589f095165c75918ad398943cc76 (diff) |
clk: ti: 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>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clk/ti/adpll.c | 2 | ||||
-rw-r--r-- | drivers/clk/ti/apll.c | 2 | ||||
-rw-r--r-- | drivers/clk/ti/fapll.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/ti/adpll.c b/drivers/clk/ti/adpll.c index 255cafb18336..d5c6db446316 100644 --- a/drivers/clk/ti/adpll.c +++ b/drivers/clk/ti/adpll.c | |||
@@ -486,7 +486,7 @@ static u8 ti_adpll_get_parent(struct clk_hw *hw) | |||
486 | return 0; | 486 | return 0; |
487 | } | 487 | } |
488 | 488 | ||
489 | static struct clk_ops ti_adpll_ops = { | 489 | static const struct clk_ops ti_adpll_ops = { |
490 | .prepare = ti_adpll_prepare, | 490 | .prepare = ti_adpll_prepare, |
491 | .unprepare = ti_adpll_unprepare, | 491 | .unprepare = ti_adpll_unprepare, |
492 | .is_prepared = ti_adpll_is_prepared, | 492 | .is_prepared = ti_adpll_is_prepared, |
diff --git a/drivers/clk/ti/apll.c b/drivers/clk/ti/apll.c index 06f486b3488c..83b148f8037c 100644 --- a/drivers/clk/ti/apll.c +++ b/drivers/clk/ti/apll.c | |||
@@ -304,7 +304,7 @@ static void omap2_apll_disable(struct clk_hw *hw) | |||
304 | ti_clk_ll_ops->clk_writel(v, &ad->control_reg); | 304 | ti_clk_ll_ops->clk_writel(v, &ad->control_reg); |
305 | } | 305 | } |
306 | 306 | ||
307 | static struct clk_ops omap2_apll_ops = { | 307 | static const struct clk_ops omap2_apll_ops = { |
308 | .enable = &omap2_apll_enable, | 308 | .enable = &omap2_apll_enable, |
309 | .disable = &omap2_apll_disable, | 309 | .disable = &omap2_apll_disable, |
310 | .is_enabled = &omap2_apll_is_enabled, | 310 | .is_enabled = &omap2_apll_is_enabled, |
diff --git a/drivers/clk/ti/fapll.c b/drivers/clk/ti/fapll.c index 66a0d0ed8b55..071af44b1ba8 100644 --- a/drivers/clk/ti/fapll.c +++ b/drivers/clk/ti/fapll.c | |||
@@ -268,7 +268,7 @@ static int ti_fapll_set_rate(struct clk_hw *hw, unsigned long rate, | |||
268 | return 0; | 268 | return 0; |
269 | } | 269 | } |
270 | 270 | ||
271 | static struct clk_ops ti_fapll_ops = { | 271 | static const struct clk_ops ti_fapll_ops = { |
272 | .enable = ti_fapll_enable, | 272 | .enable = ti_fapll_enable, |
273 | .disable = ti_fapll_disable, | 273 | .disable = ti_fapll_disable, |
274 | .is_enabled = ti_fapll_is_enabled, | 274 | .is_enabled = ti_fapll_is_enabled, |
@@ -478,7 +478,7 @@ static int ti_fapll_synth_set_rate(struct clk_hw *hw, unsigned long rate, | |||
478 | return 0; | 478 | return 0; |
479 | } | 479 | } |
480 | 480 | ||
481 | static struct clk_ops ti_fapll_synt_ops = { | 481 | static const struct clk_ops ti_fapll_synt_ops = { |
482 | .enable = ti_fapll_synth_enable, | 482 | .enable = ti_fapll_synth_enable, |
483 | .disable = ti_fapll_synth_disable, | 483 | .disable = ti_fapll_synth_disable, |
484 | .is_enabled = ti_fapll_synth_is_enabled, | 484 | .is_enabled = ti_fapll_synth_is_enabled, |