atyfb: Remove code that sets sync polarity unconditionally

Started by Antonino A. Daplas on Aug 20, 2005

Subsystems (2)

Maintainers (2)

DORMANTno replies

open the first message on its own page

Message details and related content
   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.

   From: Alexander Kern [off-list ref]
   Signed-off-by: Alexander Kern [off-list ref]
   Signed-off-by: Antonino Daplas [off-list ref]
---

atyfb_base.c |   14 --------------
1 files changed, 14 deletions(-)
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -911,20 +911,6 @@ static int aty_var_to_crtc(const struct 		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--;



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help