diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-23 16:27:56 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 12:48:41 +0100 |
commit | 9d3de1389ba970d0d35ce6960774dc046b6dd723 (patch) | |
tree | cc028de531f18e0890b15006b8a8d505d0823164 /drivers/gpu/drm/drm_fb_helper.c | |
parent | 55310008684309985110fdb99fa7b61c649778b2 (diff) | |
download | op-kernel-dev-9d3de1389ba970d0d35ce6960774dc046b6dd723.zip op-kernel-dev-9d3de1389ba970d0d35ce6960774dc046b6dd723.tar.gz |
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_fb_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index d99df15..060d25a 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -1141,8 +1141,8 @@ struct drm_display_mode *drm_has_preferred_mode(struct drm_fb_helper_connector * struct drm_display_mode *mode; list_for_each_entry(mode, &fb_connector->connector->modes, head) { - if (drm_mode_width(mode) > width || - drm_mode_height(mode) > height) + if (mode->hdisplay > width || + mode->vdisplay > height) continue; if (mode->type & DRM_MODE_TYPE_PREFERRED) return mode; |