Commit 56950ff8 authored by Julia Lawall's avatar Julia Lawall Committed by Stephen Boyd

clk: s2mps11: constify clk_ops structure

The clk_ops structure is only stored in the ops fields of
clk_init_data structures.  This field is const, so the clk_ops
structure can be const as well.

Identified and transformed using Coccinelle.
Signed-off-by: default avatarJulia Lawall <>
Reviewed-by: default avatarChanwoo Choi <>
Signed-off-by: default avatarStephen Boyd <>
parent 5fc6eb7d
......@@ -71,7 +71,7 @@ static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw,
return 32768;
static struct clk_ops s2mps11_clk_ops = {
static const struct clk_ops s2mps11_clk_ops = {
.prepare = s2mps11_clk_prepare,
.unprepare = s2mps11_clk_unprepare,
.is_prepared = s2mps11_clk_is_prepared,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment