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)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:25 +0000 (09:24 +0900)
commit075408ca92e6025b976ee3cdc12548794feefbdc
tree9d1c50d5bf3c3172b36c40c8819080d2334a3add
parent6cfea31a53940d47dd84c1b5c961b4db4ff171e2
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