]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: remove align_pitch()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 18 Apr 2016 15:18:37 +0000 (18:18 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 6 Jun 2016 07:14:27 +0000 (10:14 +0300)
commitf516efb194f0197477e5bd5d649dd86fdc25e596
treea5449db5aecf5c6b243956aac5c946d8a82bac4e
parentcea5b9ca27ee3d93b48771d307fafd9adbdc362e
drm/omap: remove align_pitch()

The previous commit removed aligning the pitch to SGX's pitch
requirement from align_pitch(). What's left is effectively a function
that returns width * bytespp.

To clean up the driver, we can remove the function and have the
calculation inline in the two places which call align_pitch().

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