diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-27 07:47:35 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-11-06 09:41:29 -0800 |
commit | 25600dad4145184b866474a2c9e072e59d90550e (patch) | |
tree | 208eba2e8e4070b3d22178ea6d6449c27534681d | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
download | linux-25600dad4145184b866474a2c9e072e59d90550e.tar.bz2 |
clk: max77686: constify clk_ops structure
The clk_ops structure is only stored in the ops field of a
clk_init_data structure. 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: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/clk-max77686.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-max77686.c b/drivers/clk/clk-max77686.c index 02551fe4b87c..22c937644c93 100644 --- a/drivers/clk/clk-max77686.c +++ b/drivers/clk/clk-max77686.c @@ -137,7 +137,7 @@ static unsigned long max77686_recalc_rate(struct clk_hw *hw, return 32768; } -static struct clk_ops max77686_clk_ops = { +static const struct clk_ops max77686_clk_ops = { .prepare = max77686_clk_prepare, .unprepare = max77686_clk_unprepare, .is_prepared = max77686_clk_is_prepared, |