]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/meson: venc: make drm_display_mode const
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 4 Mar 2020 10:40:47 +0000 (11:40 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 10 Mar 2020 09:51:24 +0000 (10:51 +0100)
Before switching to bridge funcs, make sure drm_display_mode is passed
as const to the venc functions.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jernej Škrabec <jernej.skrabec@siol.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200304104052.17196-7-narmstrong@baylibre.com
drivers/gpu/drm/meson/meson_venc.c
drivers/gpu/drm/meson/meson_venc.h

index 4efd7864d5bf328707de89250bf2966056fec8c1..a9ab78970bfe551f38a9c74922f9ac677837500f 100644 (file)
@@ -946,7 +946,7 @@ bool meson_venc_hdmi_venc_repeat(int vic)
 EXPORT_SYMBOL_GPL(meson_venc_hdmi_venc_repeat);
 
 void meson_venc_hdmi_mode_set(struct meson_drm *priv, int vic,
-                             struct drm_display_mode *mode)
+                             const struct drm_display_mode *mode)
 {
        union meson_hdmi_venc_mode *vmode = NULL;
        union meson_hdmi_venc_mode vmode_dmt;
index 576768bdd08d4ee8f28c465bb3ee08c0de3e24ae..1abdcbdf51c088c3130420556c12654b979cec0b 100644 (file)
@@ -60,7 +60,7 @@ extern struct meson_cvbs_enci_mode meson_cvbs_enci_ntsc;
 void meson_venci_cvbs_mode_set(struct meson_drm *priv,
                               struct meson_cvbs_enci_mode *mode);
 void meson_venc_hdmi_mode_set(struct meson_drm *priv, int vic,
-                             struct drm_display_mode *mode);
+                             const struct drm_display_mode *mode);
 unsigned int meson_venci_get_field(struct meson_drm *priv);
 
 void meson_venc_enable_vsync(struct meson_drm *priv);