diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-23 10:27:56 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 07:48:41 -0400 |
commit | 9d3de1389ba970d0d35ce6960774dc046b6dd723 (patch) | |
tree | cc028de531f18e0890b15006b8a8d505d0823164 /drivers/gpu/drm/drm_edid.c | |
parent | 55310008684309985110fdb99fa7b61c649778b2 (diff) |
drm/modes: remove drm_mode_height/width
There's a neat FIXME asking whether this is really need. I'd
say really no.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 2d54e460c95b..4f4d3408a30a 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -3576,8 +3576,8 @@ void drm_set_preferred_mode(struct drm_connector *connector, | |||
3576 | struct drm_display_mode *mode; | 3576 | struct drm_display_mode *mode; |
3577 | 3577 | ||
3578 | list_for_each_entry(mode, &connector->probed_modes, head) { | 3578 | list_for_each_entry(mode, &connector->probed_modes, head) { |
3579 | if (drm_mode_width(mode) == hpref && | 3579 | if (mode->hdisplay == hpref && |
3580 | drm_mode_height(mode) == vpref) | 3580 | mode->vdisplay == vpref) |
3581 | mode->type |= DRM_MODE_TYPE_PREFERRED; | 3581 | mode->type |= DRM_MODE_TYPE_PREFERRED; |
3582 | } | 3582 | } |
3583 | } | 3583 | } |