drm/i915: extract crtc_is_valid() on the FBC code
authorPaulo Zanoni <[email protected]>
Wed, 4 Nov 2015 19:10:48 +0000 (17:10 -0200)
committerMaarten Lankhorst <[email protected]>
Tue, 10 Nov 2015 09:59:01 +0000 (10:59 +0100)
commit30c58d5896e5e80511663e1553a5508714a4b55a
tree61fcf6046cea5ef673b6d7b9b480f0d139974469
parenta4dedd5a14a8910313b1b5d3f3e6cf0bb3e9d78c
drm/i915: extract crtc_is_valid() on the FBC code

We're going to kill intel_fbc_find_crtc(), that's why a big part of
the logic moved from intel_fbc_find_crtc() to crtc_is_valid().

v2:
  - Rebase due to pipe_a_only change.
  - Split the multiline conditional (Chris).

Signed-off-by: Paulo Zanoni <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Maarten Lankhorst <[email protected]>
drivers/gpu/drm/i915/intel_fbc.c