drm: Make drm_av_sync_delay() 'mode' argument const
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 7 Sep 2015 15:22:58 +0000 (18:22 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Sep 2015 12:53:54 +0000 (14:53 +0200)
drm_av_sync_delay() doesn't change the passed in mode, so make it const.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c
include/drm/drm_edid.h

index e32218f035849dde171fa5b70cd05df456232110..d895556be4f0339bddcc8beab09f8457a3842185 100644 (file)
@@ -3361,7 +3361,7 @@ EXPORT_SYMBOL(drm_edid_to_speaker_allocation);
  * the sink doesn't support audio or video.
  */
 int drm_av_sync_delay(struct drm_connector *connector,
-                     struct drm_display_mode *mode)
+                     const struct drm_display_mode *mode)
 {
        int i = !!(mode->flags & DRM_MODE_FLAG_INTERLACE);
        int a, v;
index 31528d9573319bd0c13e492f2a896f0d92619a24..2af97691e8781382d3b2484d3bffc4eb5a43a247 100644 (file)
@@ -326,7 +326,7 @@ void drm_edid_to_eld(struct drm_connector *connector, struct edid *edid);
 int drm_edid_to_sad(struct edid *edid, struct cea_sad **sads);
 int drm_edid_to_speaker_allocation(struct edid *edid, u8 **sadb);
 int drm_av_sync_delay(struct drm_connector *connector,
-                     struct drm_display_mode *mode);
+                     const struct drm_display_mode *mode);
 struct drm_connector *drm_select_eld(struct drm_encoder *encoder);
 int drm_load_edid_firmware(struct drm_connector *connector);