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>
This commit is contained in:
Julia Lawall 2018-10-27 07:47:35 +02:00 committed by Stephen Boyd
parent 651022382c
commit 25600dad41
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ static unsigned long max77686_recalc_rate(struct clk_hw *hw,
return 32768; return 32768;
} }
static struct clk_ops max77686_clk_ops = { static const struct clk_ops max77686_clk_ops = {
.prepare = max77686_clk_prepare, .prepare = max77686_clk_prepare,
.unprepare = max77686_clk_unprepare, .unprepare = max77686_clk_unprepare,
.is_prepared = max77686_clk_is_prepared, .is_prepared = max77686_clk_is_prepared,