drm: Share plane pixel format check code between legacy and atomic
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 5 Mar 2015 00:25:43 +0000 (02:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Mar 2015 08:59:35 +0000 (09:59 +0100)
commitead8610d42105a3d01f755522f11b96c60dc648f
tree7cbbdcbf073515c3e717edc1f128544148ddf62e
parent2a97acd6376922bb9d23b5f4421745d2a6690060
drm: Share plane pixel format check code between legacy and atomic

Both the legacy and atomic helpers need to check whether a plane
supports a given pixel format. The code is currently duplicated, share
it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[danvet: Slightly extend the docbook.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h