From: Tobias Jakobi Date: Mon, 27 Apr 2015 21:10:13 +0000 (+0200) Subject: drm/exynos: fb: use drm_format_num_planes to get buffer count X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~64^2~3^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d10ebb9f136669a1e9fa388fc450bf1822c93dd5;p=pandora-kernel.git drm/exynos: fb: use drm_format_num_planes to get buffer count The previous code had some special case handling for the buffer count in exynos_drm_format_num_buffers(). This code was incorrect though, since this special case doesn't exist for DRM. It stemmed from the existence of the special NV12M V4L2 format. NV12 is a bi-planar format (separate planes for luma and chroma) and V4L2 differentiates between a NV12 buffer where luma and chroma is contiguous in memory (so no data between luma/chroma), and a NV12 buffer where luma and chroma have two explicit memory locations (which is then called NV12M). This distinction doesn't exist for DRM. A bi-planar format always explicitly comes with the information about its two planes (even if these planes should be contiguous). Signed-off-by: Tobias Jakobi Acked-by: Joonyoung Shim Signed-off-by: Inki Dae --- Reading git-diff-tree failed