drm: omapdrm: fb: Simplify mode command checks when creating framebuffer
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 26 Mar 2016 18:01:13 +0000 (20:01 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 19 Dec 2016 09:24:54 +0000 (11:24 +0200)
commit6941e3d12b3284ea5b8d32b7023221700cad5f49
treef4e588273e60073b1b4651cd1b5b8dc422f007d6
parenta39c94e8138f4708b92245a7021ad4d40376360f
drm: omapdrm: fb: Simplify mode command checks when creating framebuffer

The hardware requires all planes to have an identical pitch in number of
pixels. Given that all supported formats use the same number of bytes
per pixel in all planes, framebuffer creation checks can be simplified.
The implementations assumes that no format use more than two planes
which is true with the existing hardware.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_fb.c