From: Daniel Vetter Date: Sun, 8 Jul 2012 17:40:39 +0000 (+0200) Subject: drm/i915: extract adjusted mode computation X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~20^2~15^2~3^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7758a11340cc8845509303b0bee60401738da82e;p=pandora-kernel.git drm/i915: extract adjusted mode computation While at it, adjust a few things: - Only assigng the new mode to crtc->mode right before calling the mode_set callbacks - none of the previous callbacks depend upon this, they all use the mode argument (as they should). - Check encoder->new_crtc instead of the current crtc to check whether the encoder will be used. This prepares for moving the staged output committing further down in the sequence. Follow-on patches will fix up individual ->mode_fixup callbacks (only tv and lvds are affected though). Reviewed-by: Jesse Barnes Signed-Off-by: Daniel Vetter --- Reading git-diff-tree failed