drm/imx: imx-tve: constify clk_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 27 Oct 2018 05:47:41 +0000 (07:47 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 5 Nov 2018 13:40:06 +0000 (14:40 +0100)
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>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-tve.c

index 4bc3ead5c4e36b118200ae08fa87bd7330a25dc2..293dd5752583bdad9148685f88c621d8f7840aa2 100644 (file)
@@ -434,7 +434,7 @@ static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate,
        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,
        .set_rate = clk_tve_di_set_rate,
        .recalc_rate = clk_tve_di_recalc_rate,