From: Laurent Pinchart Date: Fri, 9 Mar 2012 00:45:21 +0000 (+0900) Subject: drm/exynos: Fix fb_videomode <-> drm_mode_modeinfo conversion X-Git-Tag: v3.3~12^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7d86075fa6c082f7dc4d289a69162b13d2db924;p=pandora-kernel.git drm/exynos: Fix fb_videomode <-> drm_mode_modeinfo conversion The fb_videomode structure stores the front porch and back porch in the right_margin and left_margin fields respectively. right_margin should thus be computed with hsync_start - hdisplay, and left_margin with htotal - hsync_end. The same holds for the vertical direction. Active Front Sync Back Region Porch Porch <-------------------><----------------><-------------><----------------> //////////////////| ////////////////// | ////////////////// |.................. .................. _______________ <------ xres -------><- right_margin -><- hsync_len -><- left_margin --> <---- hdisplay -----> <------------ hsync_start ------------> <--------------------- hsync_end --------------------> <--------------------------------- htotal -----------------------------> Fix the fb_videomode <-> drm_mode_modeinfo conversion functions accordingly. Signed-off-by: Laurent Pinchart Acked-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- Reading git-diff-tree failed