]> git.baikalelectronics.ru Git - kernel.git/commit
drm: provide a helper for the encoder possible_crtcs mask
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Jan 2014 21:27:33 +0000 (21:27 +0000)
committerThierry Reding <treding@nvidia.com>
Tue, 14 Jan 2014 13:35:02 +0000 (14:35 +0100)
commit2a4128f9ff6f014055759659836ffab7d69268d5
tree67e1794359724795088e92c4ded11fff46e58007
parentcfc52c519b195e5b8d2968f9705bf226633083b4
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 <rmk+kernel@arm.linux.org.uk>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
[treding@nvidia.com: add drm_crtc_index(), move to core]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_crtc_helper.c
include/drm/drm_crtc.h