clk: versatile: make clk_ops const
Subsystems (3)
PATCH 1/1 clk: versatile: make clk_ops const
Make this const as it is only stored in the const field of a clk_init_data structure.
Signed-off-by Bhumika Goyal <[email protected]>
--- drivers/clk/versatile/clk-vexpress-osc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/versatile/clk-vexpress-osc.c +1 -1
@@ -61,7 +61,7 @@ static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate,return regmap_write (osc->reg,0 , rate); } -static struct clk_ops vexpress_osc_ops = { +static const struct clk_ops vexpress_osc_ops = { .recalc_rate = vexpress_osc_recalc_rate, .round_rate = vexpress_osc_round_rate, .set_rate = vexpress_osc_set_rate,
Signature · 1 line
1.9.1
Quoted 4 lines · Bhumika Goyal
Make this const as it is only stored in the const field of a
clk_init_datastructure.Signed-off-by Bhumika Goyal <[email protected]>
Acked-by Liviu Dudau <[email protected]>
Thanks for the patch!
Sudeep, can you going to pick this up for 4.14?
Best regards,
Liviu
Quoted 20 lines
--- drivers/clk/versatile/clk-vexpress-osc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/versatile/clk-vexpress-osc.c +1
-1@@ -61,7 +61,7 @@ static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate,return regmap_write (osc->reg,0 , rate); } -static struct clk_ops vexpress_osc_ops = { +static const struct clk_ops vexpress_osc_ops = { .recalc_rate = vexpress_osc_recalc_rate, .round_rate = vexpress_osc_round_rate, .set_rate = vexpress_osc_set_rate,Signature · 1 line
1.9.1
Signature · 8 lines
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯Quoted 4 lines · Liviu Dudau
Quoted 3 lines · Bhumika Goyal
Make this const as it is only stored in the const field of a
clk_init_datastructure.
Quoted 8 lines
Quoted 1 line
Signed-off-by Bhumika Goyal <[email protected]>Acked-by Liviu Dudau <[email protected]>Thanks for the patch!
Sudeep, can you going to pick this up for 4.14?
IIUC anything under drivers/clk is routed via clk tree. I assume Mike/Stephen will pick this up.
Signature · 2 lines
Regards, Sudeep
Stephen Boyd
AppliedQuoted 5 lines · Bhumika Goyal
Make this const as it is only stored in the const field of a
clk_init_datastructure.Signed-off-by Bhumika Goyal <[email protected]>---
Applied to clk-next
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project