]> Git Repo - linux.git/commitdiff
[PATCH] atyfb: Remove code that sets sync polarity unconditionally
authorAlexander Kern <[email protected]>
Fri, 9 Sep 2005 20:04:40 +0000 (13:04 -0700)
committerLinus Torvalds <[email protected]>
Fri, 9 Sep 2005 20:58:00 +0000 (13:58 -0700)
Currently, atyfb has code that sets the hsync and vsync polarity based on the
current video mode, without letting the user override the settings.

Remove this particular code.  The sync polarities are set by the PROM, the
user or by the videomode.

Signed-off-by: Alexander Kern <[email protected]>
Signed-off-by: Antonino Daplas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/aty/atyfb_base.c

index 3e10bd837d9e8382a9f5bf5b0ac7073bb85bdd92..037fe9d32fe39bf19ed41ee1c83671565ab748b9 100644 (file)
@@ -911,20 +911,6 @@ static int aty_var_to_crtc(const struct fb_info *info,
                vdisplay  = par->lcd_height;
 #endif
 
-       if(vdisplay < 400) {
-               h_sync_pol = 1;
-               v_sync_pol = 0;
-       } else if(vdisplay < 480) {
-               h_sync_pol = 0;
-               v_sync_pol = 1;
-       } else if(vdisplay < 768) {
-               h_sync_pol = 0;
-               v_sync_pol = 0;
-       } else {
-               h_sync_pol = 1;
-               v_sync_pol = 1;
-       }
-
        v_disp--;
        v_sync_strt--;
        v_sync_end--;
This page took 0.063662 seconds and 4 git commands to generate.