From: Ville Syrjälä Date: Mon, 7 Sep 2015 15:22:56 +0000 (+0300) Subject: drm: Make some modes const when iterating through them X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=85f8fcd619d161d65c53b067e2d99590c0d7bbad;p=linux-beck.git drm: Make some modes const when iterating through them valid_inferred_mode() don't change the modes over which it iterates, so make the iterator const. Signed-off-by: Ville Syrjälä Reviewed-by: Alex Deucher Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 05bb7311ac5d..9afb1fc15b34 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2044,7 +2044,7 @@ mode_in_range(const struct drm_display_mode *mode, struct edid *edid, static bool valid_inferred_mode(const struct drm_connector *connector, const struct drm_display_mode *mode) { - struct drm_display_mode *m; + const struct drm_display_mode *m; bool ok = false; list_for_each_entry(m, &connector->probed_modes, head) {