From: Russell King Date: Thu, 2 Jan 2014 21:27:33 +0000 (+0000) Subject: drm: provide a helper for the encoder possible_crtcs mask X-Git-Tag: v3.14-rc1~47^2~2^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5f7a6e78303fd96dc87487d6976145f70ab84a;p=pandora-kernel.git drm: provide a helper for the encoder possible_crtcs mask The encoder possible_crtcs mask identifies which CRTCs can be bound to a particular encoder. Each bit from bit 0 defines an index in the list of CRTCs held in the DRM mode_config crtc_list. Rather than having drivers trying to track the position of their CRTCs in the list, expose the code which already exists for calculating the appropriate mask bit for a CRTC. Signed-off-by: Russell King Reviewed-by: David Herrmann Reviewed-by: Jani Nikula [treding@nvidia.com: add drm_crtc_index(), move to core] Signed-off-by: Thierry Reding --- Reading git-diff-tree failed