projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daeeb43
)
clk: versatile: make clk_ops const
author
Bhumika Goyal
<bhumirks@gmail.com>
Tue, 22 Aug 2017 14:06:26 +0000
(19:36 +0530)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Thu, 31 Aug 2017 05:38:59 +0000
(22:38 -0700)
Make this const as it is only stored in the const field of a
clk_init_data structure.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/versatile/clk-vexpress-osc.c
patch
|
blob
|
history
diff --git
a/drivers/clk/versatile/clk-vexpress-osc.c
b/drivers/clk/versatile/clk-vexpress-osc.c
index 7e5add7d77528a5fbf7021fd69020a58b79db652..e7a868b83fe54e8add04ef9c59bb82ff3f23c67f 100644
(file)
--- a/
drivers/clk/versatile/clk-vexpress-osc.c
+++ b/
drivers/clk/versatile/clk-vexpress-osc.c
@@
-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,