From: Daniel Vetter Date: Thu, 24 Apr 2014 21:54:43 +0000 (+0200) Subject: drm/i915/tv: Remove ->mode_set callback X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~56^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=809a2a8b4af40a77537a2075a536e2d259c81644;p=pandora-kernel.git drm/i915/tv: Remove ->mode_set callback Currently for the i9xx crtc hooks there's nothing between the call to encoder->mode_set and encoder->pre_enable which touches the hardware. Therefore, since tv is only used on gen3/4, we can just move the hook. Yay for easy cases! The only other important thing to check is that the new ->pre_enable hook is idempotent wrt the sw state since now it can be called multiple times (due to DPMS). After a the bit of refactoring this is now easy to check: It only reads crtc->config and computes derived state but otherwise leaves it as-is, so we're good. Reviewed-by: Imre Deak Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed