summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAyan Kumar Halder <ayan.halder@arm.com>2018-06-18 20:08:43 +0300
committerLiviu Dudau <Liviu.Dudau@arm.com>2018-06-18 20:08:43 +0300
commitc6cf387ec56c19028333274747bbb4ae145a2d13 (patch)
tree89ca3c7d7fe15ea3b6fbcb0497d4bc61e173ec5b /drivers/gpu
parentad7fda2e378f4356df621a39655f7c200b495d81 (diff)
downloadlinux-c6cf387ec56c19028333274747bbb4ae145a2d13.tar.xz
drm/mali-dp: Rectify the width and height passed to rotmem_required()
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/arm/malidp_planes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c
index 4af3c1fabb23..29409a65d864 100644
--- a/drivers/gpu/drm/arm/malidp_planes.c
+++ b/drivers/gpu/drm/arm/malidp_planes.c
@@ -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;