From: Ville Syrjälä Date: Fri, 13 Sep 2013 12:59:11 +0000 (+0300) Subject: drm/i915: Add intel_dotclock_calculate() X-Git-Tag: v3.13-rc1~76^2~114^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6878da05006feb68efe23a6ae010b1a5df32ca5f;p=pandora-kernel.git drm/i915: Add intel_dotclock_calculate() Extract the code to calculate the dotclock from the link clock and M/N values into a new function from ironlake_crtc_clock_get(). The new function can be used to calculate the dotclock for both FDI and DP cases. Also simplify the code a bit along the way. v2: Don't forget about non-pch encoders in ironlake_crtc_clock_get() Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed