aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2018-10-27 01:47:38 -0400
committerStephen Boyd <sboyd@kernel.org>2018-11-06 12:41:49 -0500
commit16ace88405fba82b9c86aeac824d82072ff89c0f (patch)
tree767cc148d5aa9bc207ce18f342ee9ab9e16dd764
parent19aa8e32b9e699279b71b94ad4fe26b6b58a4fb9 (diff)
clk: pistachio: constify clk_ops structures
These clk_ops structures are only stored in the ops field of a clk_init_data structure. This field is const, so the clk_ops structures can be const as well. Identified and transformed using Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r--drivers/clk/pistachio/clk-pll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/pistachio/clk-pll.c b/drivers/clk/pistachio/clk-pll.c
index 7e8daab9025b..312c3580187f 100644
--- a/drivers/clk/pistachio/clk-pll.c
+++ b/drivers/clk/pistachio/clk-pll.c
@@ -298,7 +298,7 @@ static unsigned long pll_gf40lp_frac_recalc_rate(struct clk_hw *hw,
298 return rate; 298 return rate;
299} 299}
300 300
301static struct clk_ops pll_gf40lp_frac_ops = { 301static const struct clk_ops pll_gf40lp_frac_ops = {
302 .enable = pll_gf40lp_frac_enable, 302 .enable = pll_gf40lp_frac_enable,
303 .disable = pll_gf40lp_frac_disable, 303 .disable = pll_gf40lp_frac_disable,
304 .is_enabled = pll_gf40lp_frac_is_enabled, 304 .is_enabled = pll_gf40lp_frac_is_enabled,
@@ -307,7 +307,7 @@ static struct clk_ops pll_gf40lp_frac_ops = {
307 .set_rate = pll_gf40lp_frac_set_rate, 307 .set_rate = pll_gf40lp_frac_set_rate,
308}; 308};
309 309
310static struct clk_ops pll_gf40lp_frac_fixed_ops = { 310static const struct clk_ops pll_gf40lp_frac_fixed_ops = {
311 .enable = pll_gf40lp_frac_enable, 311 .enable = pll_gf40lp_frac_enable,
312 .disable = pll_gf40lp_frac_disable, 312 .disable = pll_gf40lp_frac_disable,
313 .is_enabled = pll_gf40lp_frac_is_enabled, 313 .is_enabled = pll_gf40lp_frac_is_enabled,
@@ -430,7 +430,7 @@ static unsigned long pll_gf40lp_laint_recalc_rate(struct clk_hw *hw,
430 return rate; 430 return rate;
431} 431}
432 432
433static struct clk_ops pll_gf40lp_laint_ops = { 433static const struct clk_ops pll_gf40lp_laint_ops = {
434 .enable = pll_gf40lp_laint_enable, 434 .enable = pll_gf40lp_laint_enable,
435 .disable = pll_gf40lp_laint_disable, 435 .disable = pll_gf40lp_laint_disable,
436 .is_enabled = pll_gf40lp_laint_is_enabled, 436 .is_enabled = pll_gf40lp_laint_is_enabled,
@@ -439,7 +439,7 @@ static struct clk_ops pll_gf40lp_laint_ops = {
439 .set_rate = pll_gf40lp_laint_set_rate, 439 .set_rate = pll_gf40lp_laint_set_rate,
440}; 440};
441 441
442static struct clk_ops pll_gf40lp_laint_fixed_ops = { 442static const struct clk_ops pll_gf40lp_laint_fixed_ops = {
443 .enable = pll_gf40lp_laint_enable, 443 .enable = pll_gf40lp_laint_enable,
444 .disable = pll_gf40lp_laint_disable, 444 .disable = pll_gf40lp_laint_disable,
445 .is_enabled = pll_gf40lp_laint_is_enabled, 445 .is_enabled = pll_gf40lp_laint_is_enabled,