]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: ti: dra7: constify clk_hw_omap_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 15 Nov 2015 19:48:14 +0000 (20:48 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 21 Nov 2015 00:22:21 +0000 (16:22 -0800)
The clk_hw_omap_ops structures are never modified, so declare this one as
const, like the others.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/ti/apll.c

index f3eab6e7902707d6f0d11ea01daef8e1f76a8d9b..b336a8c11e2a6e442fe30022f0264d91cdcdef80 100644 (file)
@@ -323,7 +323,7 @@ static void omap2_apll_deny_idle(struct clk_hw_omap *clk)
        omap2_apll_set_autoidle(clk, OMAP2_APLL_AUTOIDLE_DISABLE);
 }
 
-static struct clk_hw_omap_ops omap2_apll_hwops = {
+static const struct clk_hw_omap_ops omap2_apll_hwops = {
        .allow_idle     = &omap2_apll_allow_idle,
        .deny_idle      = &omap2_apll_deny_idle,
 };