Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / sti / sti_hdmi.c
index ae5424bd6b4cbd00d1ffc5b4fd35f11cb56a11cd..f28a4d54487c7636fee9e1a4f5ca80ecf73adcc6 100644 (file)
@@ -192,8 +192,8 @@ static void hdmi_active_area(struct sti_hdmi *hdmi)
        u32 xmin, xmax;
        u32 ymin, ymax;
 
-       xmin = sti_vtg_get_pixel_number(hdmi->mode, 0);
-       xmax = sti_vtg_get_pixel_number(hdmi->mode, hdmi->mode.hdisplay - 1);
+       xmin = sti_vtg_get_pixel_number(hdmi->mode, 1);
+       xmax = sti_vtg_get_pixel_number(hdmi->mode, hdmi->mode.hdisplay);
        ymin = sti_vtg_get_line_number(hdmi->mode, 0);
        ymax = sti_vtg_get_line_number(hdmi->mode, hdmi->mode.vdisplay - 1);