Skip to content

Commit d687767

Browse files
JuliaLawallbebarino
authored andcommitted
clk: ti: dra7: constify clk_hw_omap_ops structure
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>
1 parent f49afec commit d687767

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/clk/ti/apll.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static void omap2_apll_deny_idle(struct clk_hw_omap *clk)
323323
omap2_apll_set_autoidle(clk, OMAP2_APLL_AUTOIDLE_DISABLE);
324324
}
325325

326-
static struct clk_hw_omap_ops omap2_apll_hwops = {
326+
static const struct clk_hw_omap_ops omap2_apll_hwops = {
327327
.allow_idle = &omap2_apll_allow_idle,
328328
.deny_idle = &omap2_apll_deny_idle,
329329
};

0 commit comments

Comments
 (0)