summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_edid.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-09-07 18:22:56 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-09-09 14:53:39 +0200
commit85f8fcd619d161d65c53b067e2d99590c0d7bbad (patch)
treeb1b188aa2c982ffc8376596dd684ad680b694533 /drivers/gpu/drm/drm_edid.c
parent68ec2a2a24815c0ee359b1327b60a276cd2280d8 (diff)
downloadtalos-obmc-linux-85f8fcd619d161d65c53b067e2d99590c0d7bbad.tar.gz
talos-obmc-linux-85f8fcd619d161d65c53b067e2d99590c0d7bbad.zip
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ä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
-rw-r--r--drivers/gpu/drm/drm_edid.c2
1 files changed, 1 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud