diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-27 07:47:40 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-11-06 09:42:12 -0800 |
commit | 56950ff82325b9712ad54874c81a22e4de38b0c7 (patch) | |
tree | 95cd35cca3e5dcbae5ecf220164157eba230a5c3 /drivers/clk/clk-s2mps11.c | |
parent | 5fc6eb7d74f46a96cacc5147f87afd88a01bb89b (diff) |
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: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-s2mps11.c')
-rw-r--r-- | drivers/clk/clk-s2mps11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index 5b419b82f7ca..2ce370c804aa 100644 --- a/drivers/clk/clk-s2mps11.c +++ b/drivers/clk/clk-s2mps11.c @@ -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, |