]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/exynos/exynos_drm_crtc.c
drm/exynos: added mode_fixup feature and code clean.
[karo-tx-linux.git] / drivers / gpu / drm / exynos / exynos_drm_crtc.c
index de818831a51144393a6f237feb5d81077a1776bc..2d9a0e630d7f6b33b9ba4eb7be88166acc933149 100644 (file)
@@ -249,7 +249,11 @@ exynos_drm_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
 {
        DRM_DEBUG_KMS("%s\n", __FILE__);
 
-       mode = adjusted_mode;
+       /*
+        * copy the mode data adjusted by mode_fixup() into crtc->mode
+        * so that hardware can be seet to proper mode.
+        */
+       memcpy(&crtc->mode, adjusted_mode, sizeof(*adjusted_mode));
 
        return exynos_drm_crtc_update(crtc);
 }