drm/sti: fix cursor coordinates
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>
Thu, 7 Jan 2016 13:51:06 +0000 (14:51 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 26 Feb 2016 09:03:56 +0000 (10:03 +0100)
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>
drivers/gpu/drm/sti/sti_cursor.c

index 807863106b8da813949383f291830c60d087d4e0..a19693adace2f227262cb269effa3375e4a4041d 100644 (file)
@@ -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;