]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/atafb.c
via-velocity: add velocity_set_rxbufsize helper
[linux-2.6-omap-h63xx.git] / drivers / video / atafb.c
index 5d4fbaa53a6cefd6fc69a9676987c77de7f5b732..dff35474b854f5b3949d730e8cafc7241792a01f 100644 (file)
@@ -1270,7 +1270,7 @@ again:
 
        gstart = (prescale / 2 + plen * left_margin) / prescale;
        /* gend1 is for hde (gend-gstart multiple of align), shifter's xres */
-       gend1 = gstart + ((xres + align - 1) / align) * align * plen / prescale;
+       gend1 = gstart + roundup(xres, align) * plen / prescale;
        /* gend2 is for hbb, visible xres (rest to gend1 is cut off by hblank) */
        gend2 = gstart + xres * plen / prescale;
        par->HHT = plen * (left_margin + xres + right_margin) /