Commit fac8033f authored by Julia Lawall's avatar Julia Lawall Committed by Philipp Zabel

drm/imx: imx-tve: 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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 946485d0
...@@ -434,7 +434,7 @@ static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate, ...@@ -434,7 +434,7 @@ static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate,
return 0; return 0;
} }
static struct clk_ops clk_tve_di_ops = { static const struct clk_ops clk_tve_di_ops = {
.round_rate = clk_tve_di_round_rate, .round_rate = clk_tve_di_round_rate,
.set_rate = clk_tve_di_set_rate, .set_rate = clk_tve_di_set_rate,
.recalc_rate = clk_tve_di_recalc_rate, .recalc_rate = clk_tve_di_recalc_rate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment