clk: max77686: constify clk_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 27 Oct 2018 05:47:35 +0000 (07:47 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 6 Nov 2018 17:41:29 +0000 (09:41 -0800)
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>
drivers/clk/clk-max77686.c

index 02551fe4b87c5461c69d88a66b5b2f5b8fefbd6d..22c937644c93eb6aaaf3e35153235a943c742ee0 100644 (file)
@@ -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,