mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
63871f713e
commit
6a5228fdf0
3 changed files with 4 additions and 12 deletions
|
@ -125,9 +125,8 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
|
|||
mode_cmd.width = sizes->surface_width;
|
||||
mode_cmd.height = sizes->surface_height;
|
||||
|
||||
mode_cmd.pitches[0] = align_pitch(
|
||||
mode_cmd.width * ((sizes->surface_bpp + 7) / 8),
|
||||
mode_cmd.width, sizes->surface_bpp);
|
||||
mode_cmd.pitches[0] = mode_cmd.width *
|
||||
DIV_ROUND_UP(sizes->surface_bpp, 8);
|
||||
|
||||
fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled;
|
||||
if (fbdev->ywrap_enabled) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue