summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sti
diff options
context:
space:
mode:
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>2016-01-07 14:51:06 +0100
committerVincent Abriou <vincent.abriou@st.com>2016-02-26 10:03:56 +0100
commitb83a8b5386628708fa4b5407ac5ccc27e16ad8fa (patch)
tree271e33731a14de82cdb165814626815190fe08e5 /drivers/gpu/drm/sti
parent652353e6e561c2aeeac62df183f721f6f9b5b45f (diff)
downloadlinux-stable-b83a8b5386628708fa4b5407ac5ccc27e16ad8fa.tar.gz
linux-stable-b83a8b5386628708fa4b5407ac5ccc27e16ad8fa.tar.bz2
linux-stable-b83a8b5386628708fa4b5407ac5ccc27e16ad8fa.zip
drm/sti: fix cursor coordinates
fix x/y typo while setting cursor coordinates Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
Diffstat (limited to 'drivers/gpu/drm/sti')
-rw-r--r--drivers/gpu/drm/sti/sti_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_cursor.c b/drivers/gpu/drm/sti/sti_cursor.c
index 807863106b8d..a19693adace2 100644
--- a/drivers/gpu/drm/sti/sti_cursor.c
+++ b/drivers/gpu/drm/sti/sti_cursor.c
@@ -205,7 +205,7 @@ static void sti_cursor_atomic_update(struct drm_plane *drm_plane,
writel(cursor->height << 16 | cursor->width, cursor->regs + CUR_SIZE);
y = sti_vtg_get_line_number(*mode, dst_y);
- x = sti_vtg_get_pixel_number(*mode, dst_y);
+ x = sti_vtg_get_pixel_number(*mode, dst_x);
writel((y << 16) | x, cursor->regs + CUR_VPO);
plane->status = STI_PLANE_UPDATED;