drm/rcar-du: Fix maximum frame buffer pitch computation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 28 Jul 2014 18:18:36 +0000 (20:18 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:36 +0000 (11:15 +0100)
commit7fbb8466dafab86d6d2fb3fd4a8df9c47d4bee70
treefe62fd1295c1bead7813aa26e87aae847101b91d
parent08eb1a66d2a4f17849b6c7996a2e099127f10399
drm/rcar-du: Fix maximum frame buffer pitch computation

The maximum pitch constraint for the hardware is expressed in pixels.
Convert it to bytes to validate frame buffer creation, as frame buffer
pitches are expressed in bytes.

Reported-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 8bed5cc765ffdd61b59f8405d38b377f5a7f0920)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/gpu/drm/rcar-du/rcar_du_kms.c