diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-27 01:47:37 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-11-06 12:41:44 -0500 |
commit | 19aa8e32b9e699279b71b94ad4fe26b6b58a4fb9 (patch) | |
tree | d81ecc57851bd222251b58a27b21c8ee874d7697 | |
parent | 25600dad4145184b866474a2c9e072e59d90550e (diff) |
clk: palmas: constify clk_ops structure
The clk_ops structure is only stored in the ops field 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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/clk-palmas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-palmas.c b/drivers/clk/clk-palmas.c index e9612e7068e9..e41a3a9f7528 100644 --- a/drivers/clk/clk-palmas.c +++ b/drivers/clk/clk-palmas.c | |||
@@ -115,7 +115,7 @@ static int palmas_clks_is_prepared(struct clk_hw *hw) | |||
115 | return !!(val & cinfo->clk_desc->enable_mask); | 115 | return !!(val & cinfo->clk_desc->enable_mask); |
116 | } | 116 | } |
117 | 117 | ||
118 | static struct clk_ops palmas_clks_ops = { | 118 | static const struct clk_ops palmas_clks_ops = { |
119 | .prepare = palmas_clks_prepare, | 119 | .prepare = palmas_clks_prepare, |
120 | .unprepare = palmas_clks_unprepare, | 120 | .unprepare = palmas_clks_unprepare, |
121 | .is_prepared = palmas_clks_is_prepared, | 121 | .is_prepared = palmas_clks_is_prepared, |