aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/imx-tve.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2018-10-27 05:47:41 +0000
committerPhilipp Zabel <[email protected]>2018-11-05 13:40:06 +0000
commitfac8033fe3abbfd9b4404bf803e00a370277470a (patch)
tree47d2a2bdbcb9a9ac66d96449e5cb6fb294a1da3e /drivers/gpu/drm/imx/imx-tve.c
parentdrm/imx: Switch to SPDX identifier (diff)
downloadkernel-fac8033fe3abbfd9b4404bf803e00a370277470a.tar.gz
kernel-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 <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-tve.c')
-rw-r--r--drivers/gpu/drm/imx/imx-tve.c2
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,