drm: Add drm_format_num_planes() utility function
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Dec 2011 22:33:24 +0000 (00:33 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 20:34:32 +0000 (20:34 +0000)
commitd0d110e096298d2715aa26b3698e604e0d4a2fb9
tree5ea4b13f7fcb28940a9c1f5d4ffa28188ebc4704
parentc75488376a55c207172f78664d600b87df88107f
drm: Add drm_format_num_planes() utility function

This function returns the number of planes used by a specific pixel
format.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c
include/drm/drm_crtc_helper.h