Skip to contentSkip to conversation

i810fb: trivial fixes and cleanups

PATCH Applied Antonino Daplas 2 participants 2 messages Jan 2, 2003 – Jan 6, 2003 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Attached is a diff against linux-2.5.54.

1. i810fb_par should be built inf fb_set_par() instead of fb_check_var().
2. changed __devinit*/__devexit* to __init/__exit.
3. removed unused/redundant variables

Tony

drivers/video/i810/i810.h +0 -2
diff -Naur linux-2.5.54/drivers/video/i810/i810.h linux/drivers/video/i810/i810.h
@@ -212,9 +212,7 @@
 
 struct gtt_data {
 	agp_memory *i810_fb_memory;
-	agp_memory *i810_iring_memory;
 	agp_memory *i810_cursor_memory;
-	agp_memory *i810_pixmap_memory;
 };
 
 struct mode_registers {
drivers/video/i810/i810_accel.c +1 -10
diff -Naur linux-2.5.54/drivers/video/i810/i810_accel.c linux/drivers/video/i810/i810_accel.c
@@ -27,7 +27,6 @@
 }                                                                      
 
 extern inline void flush_cache(void);
-extern int reinit_agp(struct fb_info *info);
 
 /************************************************************/
 
@@ -343,7 +342,7 @@
 	dy = rect->dy;
 	height = rect->height;
 
-	dest = p->fix.smem_start +  (dy * p->fix.line_length) + dx;
+	dest = p->fix.smem_start + (dy * p->fix.line_length) + dx;
 	color_blit(width, height, p->fix.line_length, dest, rop, color, 
 		   par->blit_bpp, par);
 }
@@ -394,11 +393,6 @@
 			 PAT_COPY_ROP, par->blit_bpp, par);
 }
 
-/*
- * Blitting is done at 8x8 pixel-array at a time.  If map is not 
- * monochrome or not a multiple of 8x8 pixels, cfb_imageblit will
- * be called instead.  
- */
 void i810fb_imageblit(struct fb_info *p, struct fb_image *image)
 {
 	struct i810fb_par *par = (struct i810fb_par *) p->par;
@@ -422,9 +416,6 @@
 		bg = image->bg_color;
 		break;
 	case 16:
-		fg = ((u32 *)(p->pseudo_palette))[image->fg_color];
-		bg = ((u32 *)(p->pseudo_palette))[image->bg_color];
-		break;
 	case 24:
 		fg = ((u32 *)(p->pseudo_palette))[image->fg_color];
 		bg = ((u32 *)(p->pseudo_palette))[image->bg_color];
drivers/video/i810/i810_dvt.c +1 -1
diff -Naur linux-2.5.54/drivers/video/i810/i810_dvt.c linux/drivers/video/i810/i810_dvt.c
@@ -218,7 +218,7 @@
 	u32 diff = 0, diff_best = 0xFFFFFFFF, i = 0, i_best = 0; 
 	u8 hfl;
 
-	hfl =  (u8) ((xres >> 3) - 1);
+	hfl = (u8) ((xres >> 3) - 1);
 	for (i = 0; i < ARRAY_SIZE(std_modes); i++) { 
 		if (std_modes[i].cr01 == hfl) { 
 			if (std_modes[i].pixclock <= par->regs.pixclock)
drivers/video/i810/i810_main.c +22 -29

170 lines not on this page · raw message

drivers/video/i810/i810_main.h +23 -56

118 lines not on this page · raw message

#1 lore raw
Quoted 7 lines

Attached is a diff against linux-2.5.54.

1. i810fb_par should be built inf fb_set_par() instead of fb_check_var().
2. changed __devinit*/__devexit* to __init/__exit.
3. removed unused/redundant variables

Applied.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf