diff options
author | Sean Paul <seanpaul@chromium.org> | 2014-01-30 22:19:16 +0100 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-03-23 16:36:32 +0100 |
commit | 75626853a7a00633f24def1039df5aa55d051091 (patch) | |
tree | ec71ddaccda0f2357026768d5df83f8b7b0be26e /drivers/gpu/drm/exynos | |
parent | drm/exynos: Remove exynos_drm_hdmi shim (diff) | |
download | linux-75626853a7a00633f24def1039df5aa55d051091.tar.xz linux-75626853a7a00633f24def1039df5aa55d051091.zip |
drm/exynos: Use drm_mode_copy to copy modes
This patch changes the manual copying of mode to adjusted_mode in
mode_fixup to use drm_mode_copy instead of handling things manually.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index cc02e91848b5..b31a51da50f6 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -897,21 +897,13 @@ static void hdmi_mode_fixup(struct exynos_drm_display *display, mode_ok = hdmi_check_mode(display, m); if (mode_ok == 0) { - struct drm_mode_object base; - struct list_head head; - DRM_INFO("desired mode doesn't exist so\n"); DRM_INFO("use the most suitable mode among modes.\n"); DRM_DEBUG_KMS("Adjusted Mode: [%d]x[%d] [%d]Hz\n", m->hdisplay, m->vdisplay, m->vrefresh); - /* preserve display mode header while copying. */ - head = adjusted_mode->head; - base = adjusted_mode->base; - memcpy(adjusted_mode, m, sizeof(*m)); - adjusted_mode->head = head; - adjusted_mode->base = base; + drm_mode_copy(adjusted_mode, m); break; } } |