diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-27 01:47:41 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-11-05 08:40:06 -0500 |
commit | fac8033fe3abbfd9b4404bf803e00a370277470a (patch) | |
tree | 47d2a2bdbcb9a9ac66d96449e5cb6fb294a1da3e /drivers/gpu/drm/imx/imx-tve.c | |
parent | 946485d0ede5bb29d3aad55bf7afd35cee1ef529 (diff) |
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 <Julia.Lawall@lip6.fr>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-tve.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-tve.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
434 | return 0; | 434 | return 0; |
435 | } | 435 | } |
436 | 436 | ||
437 | static struct clk_ops clk_tve_di_ops = { | 437 | static const struct clk_ops clk_tve_di_ops = { |
438 | .round_rate = clk_tve_di_round_rate, | 438 | .round_rate = clk_tve_di_round_rate, |
439 | .set_rate = clk_tve_di_set_rate, | 439 | .set_rate = clk_tve_di_set_rate, |
440 | .recalc_rate = clk_tve_di_recalc_rate, | 440 | .recalc_rate = clk_tve_di_recalc_rate, |