From: Julia Lawall Date: Sat, 27 Oct 2018 05:47:41 +0000 (+0200) Subject: drm/imx: imx-tve: constify clk_ops structure X-Git-Tag: for-linus-20190104~57^2~12^2~22 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=fac8033fe3abbfd9b4404bf803e00a370277470a;p=linux-2.6-block.git 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: Julia Lawall Signed-off-by: Philipp Zabel --- diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index 4bc3ead5c4e3..293dd5752583 100644 --- a/drivers/gpu/drm/imx/imx-tve.c +++ b/drivers/gpu/drm/imx/imx-tve.c @@ -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,