aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2017-10-17 05:06:10 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-10-17 13:49:12 -0400
commitabcb8766b32d277859163e4da585f76f10d998f1 (patch)
tree6de37e571d2dbb93cd2248bc66689bef884102f4
parent79c6109243fdfe4377c7e5518c0bae7269cfc716 (diff)
drm/sun4i: tcon: Make tcon_set_mux mode argument const
The drm_display_mode pointer can be mark const, so let's do it. Reviewed-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Link: https://patchwork.freedesktop.org/patch/msgid/b0cce5a43fc3b56953d21a54fc3c14672f755f42.1508231063.git-series.maxime.ripard@free-electrons.com
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.c6
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index 68751b999877..54e1796d2953 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -134,7 +134,7 @@ static struct sun4i_tcon *sun4i_get_tcon0(struct drm_device *drm)
134} 134}
135 135
136void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel, 136void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel,
137 struct drm_encoder *encoder) 137 const struct drm_encoder *encoder)
138{ 138{
139 int ret = -ENOTSUPP; 139 int ret = -ENOTSUPP;
140 140
@@ -783,7 +783,7 @@ static int sun4i_tcon_remove(struct platform_device *pdev)
783 783
784/* platform specific TCON muxing callbacks */ 784/* platform specific TCON muxing callbacks */
785static int sun5i_a13_tcon_set_mux(struct sun4i_tcon *tcon, 785static int sun5i_a13_tcon_set_mux(struct sun4i_tcon *tcon,
786 struct drm_encoder *encoder) 786 const struct drm_encoder *encoder)
787{ 787{
788 u32 val; 788 u32 val;
789 789
@@ -799,7 +799,7 @@ static int sun5i_a13_tcon_set_mux(struct sun4i_tcon *tcon,
799} 799}
800 800
801static int sun6i_tcon_set_mux(struct sun4i_tcon *tcon, 801static int sun6i_tcon_set_mux(struct sun4i_tcon *tcon,
802 struct drm_encoder *encoder) 802 const struct drm_encoder *encoder)
803{ 803{
804 struct sun4i_tcon *tcon0 = sun4i_get_tcon0(encoder->dev); 804 struct sun4i_tcon *tcon0 = sun4i_get_tcon0(encoder->dev);
805 u32 shift; 805 u32 shift;
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h
index d9e1357cc8ae..d81c6e20efe6 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.h
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h
@@ -152,7 +152,7 @@ struct sun4i_tcon_quirks {
152 bool needs_de_be_mux; /* sun6i needs mux to select backend */ 152 bool needs_de_be_mux; /* sun6i needs mux to select backend */
153 153
154 /* callback to handle tcon muxing options */ 154 /* callback to handle tcon muxing options */
155 int (*set_mux)(struct sun4i_tcon *, struct drm_encoder *); 155 int (*set_mux)(struct sun4i_tcon *, const struct drm_encoder *);
156}; 156};
157 157
158struct sun4i_tcon { 158struct sun4i_tcon {