diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-27 07:47:41 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-11-05 14:40:06 +0100 |
commit | fac8033fe3abbfd9b4404bf803e00a370277470a (patch) | |
tree | 47d2a2bdbcb9a9ac66d96449e5cb6fb294a1da3e /drivers/gpu/drm/imx | |
parent | 946485d0ede5bb29d3aad55bf7afd35cee1ef529 (diff) | |
download | blackbird-op-linux-fac8033fe3abbfd9b4404bf803e00a370277470a.tar.gz blackbird-op-linux-fac8033fe3abbfd9b4404bf803e00a370277470a.zip |
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')
-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, 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, |