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)
committerDave Airlie <airlied@redhat.com>
Wed, 30 Jul 2014 01:08:24 +0000 (11:08 +1000)
commit8bed5cc765ffdd61b59f8405d38b377f5a7f0920
tree591a46504c7493df08ceb88c94b85e8e8765b900
parente05444be705b5c7c7f85d7722b6f97f3a6732d54
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>
drivers/gpu/drm/rcar-du/rcar_du_kms.c