drm/mali-dp: Rectify the width and height passed to rotmem_required()
authorAyan Kumar Halder <ayan.halder@arm.com>
Mon, 18 Jun 2018 17:08:43 +0000 (18:08 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 18 Jun 2018 17:08:43 +0000 (18:08 +0100)
The width and height needs to be swapped

Signed-off-by: Ayan Kumar halder <ayan.halder@arm.com>
Reviewed-by: Brian Starkey <brian.starkey@arm.com>
Reviewed-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
[rebased on top of v4.18-rc1]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_planes.c

index 4af3c1fabb2303193f84ffc823f81c89e5587cb4..29409a65d864760e674f787cb5279cdbff5b91a7 100644 (file)
@@ -236,8 +236,8 @@ static int malidp_de_plane_check(struct drm_plane *plane,
        if (state->rotation & MALIDP_ROTATED_MASK) {
                int val;
 
-               val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_h,
-                                                    state->crtc_w,
+               val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_w,
+                                                    state->crtc_h,
                                                     fb->format->format);
                if (val < 0)
                        return val;