Skip to contentSkip to conversation

clk: versatile: make clk_ops const

PATCH Applied Bhumika Goyal 4 participants 4 messages Aug 22, 2017 – Aug 31, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/clk/versatile/clk-vexpress-osc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/versatile/clk-vexpress-osc.c +1 -1
index 7e5add7..e7a868b 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Bhumika Goyal

Make this const as it is only stored in the const field of a clk_init_data structure.

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
index 7e5add7..e7a868b 100644
@@ -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!  /
  ---------------
    ¯\_(ツ)_/¯
#2 lore raw
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_data structure.

Quoted 8 lines
Quoted 1 line

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