diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-22 10:02:21 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-02 02:25:31 -0400 |
commit | 8f435057e9c5eca9da7c02ab398971280ba80056 (patch) | |
tree | 5b00b4ce3c49951e9eb72d467bb155409b266af6 | |
parent | ba3892df525b9ff203d0ad116a41306bf5081215 (diff) |
clk: sirf: 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>
-rw-r--r-- | drivers/clk/sirf/clk-common.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/clk/sirf/clk-common.c b/drivers/clk/sirf/clk-common.c index 77e1e2491689..f9ef6fa84f0b 100644 --- a/drivers/clk/sirf/clk-common.c +++ b/drivers/clk/sirf/clk-common.c | |||
@@ -184,7 +184,7 @@ static unsigned long cpu_clk_recalc_rate(struct clk_hw *hw, | |||
184 | return clk_hw_get_rate(parent_clk); | 184 | return clk_hw_get_rate(parent_clk); |
185 | } | 185 | } |
186 | 186 | ||
187 | static struct clk_ops std_pll_ops = { | 187 | static const struct clk_ops std_pll_ops = { |
188 | .recalc_rate = pll_clk_recalc_rate, | 188 | .recalc_rate = pll_clk_recalc_rate, |
189 | .round_rate = pll_clk_round_rate, | 189 | .round_rate = pll_clk_round_rate, |
190 | .set_rate = pll_clk_set_rate, | 190 | .set_rate = pll_clk_set_rate, |
@@ -265,7 +265,7 @@ static unsigned long usb_pll_clk_recalc_rate(struct clk_hw *hw, unsigned long pa | |||
265 | return (reg & SIRFSOC_USBPHY_PLL_BYPASS) ? parent_rate : 48*MHZ; | 265 | return (reg & SIRFSOC_USBPHY_PLL_BYPASS) ? parent_rate : 48*MHZ; |
266 | } | 266 | } |
267 | 267 | ||
268 | static struct clk_ops usb_pll_ops = { | 268 | static const struct clk_ops usb_pll_ops = { |
269 | .enable = usb_pll_clk_enable, | 269 | .enable = usb_pll_clk_enable, |
270 | .disable = usb_pll_clk_disable, | 270 | .disable = usb_pll_clk_disable, |
271 | .recalc_rate = usb_pll_clk_recalc_rate, | 271 | .recalc_rate = usb_pll_clk_recalc_rate, |
@@ -437,7 +437,7 @@ static int cpu_clk_set_rate(struct clk_hw *hw, unsigned long rate, | |||
437 | return ret2 ? ret2 : ret1; | 437 | return ret2 ? ret2 : ret1; |
438 | } | 438 | } |
439 | 439 | ||
440 | static struct clk_ops msi_ops = { | 440 | static const struct clk_ops msi_ops = { |
441 | .set_rate = dmn_clk_set_rate, | 441 | .set_rate = dmn_clk_set_rate, |
442 | .round_rate = dmn_clk_round_rate, | 442 | .round_rate = dmn_clk_round_rate, |
443 | .recalc_rate = dmn_clk_recalc_rate, | 443 | .recalc_rate = dmn_clk_recalc_rate, |
@@ -488,7 +488,7 @@ static struct clk_dmn clk_io = { | |||
488 | }, | 488 | }, |
489 | }; | 489 | }; |
490 | 490 | ||
491 | static struct clk_ops cpu_ops = { | 491 | static const struct clk_ops cpu_ops = { |
492 | .set_parent = dmn_clk_set_parent, | 492 | .set_parent = dmn_clk_set_parent, |
493 | .get_parent = dmn_clk_get_parent, | 493 | .get_parent = dmn_clk_get_parent, |
494 | .set_rate = cpu_clk_set_rate, | 494 | .set_rate = cpu_clk_set_rate, |
@@ -511,7 +511,7 @@ static struct clk_dmn clk_cpu = { | |||
511 | }, | 511 | }, |
512 | }; | 512 | }; |
513 | 513 | ||
514 | static struct clk_ops dmn_ops = { | 514 | static const struct clk_ops dmn_ops = { |
515 | .is_enabled = std_clk_is_enabled, | 515 | .is_enabled = std_clk_is_enabled, |
516 | .enable = std_clk_enable, | 516 | .enable = std_clk_enable, |
517 | .disable = std_clk_disable, | 517 | .disable = std_clk_disable, |
@@ -679,7 +679,7 @@ static const char * const std_clk_io_parents[] = { | |||
679 | "io", | 679 | "io", |
680 | }; | 680 | }; |
681 | 681 | ||
682 | static struct clk_ops ios_ops = { | 682 | static const struct clk_ops ios_ops = { |
683 | .is_enabled = std_clk_is_enabled, | 683 | .is_enabled = std_clk_is_enabled, |
684 | .enable = std_clk_enable, | 684 | .enable = std_clk_enable, |
685 | .disable = std_clk_disable, | 685 | .disable = std_clk_disable, |