kernels/linux-2.4.0/drivers/video/sa1100fb.c
/*
 * sa1100fb_blank():
 *	Blank the display by setting all palette values to zero.  Note, the 
 * 	12 and 16 bpp modes don't really use the palette, so this will not
 *      blank the display in all modes.  
 */
Blank the display by setting all palette values to zero.  Note, the
12 and 16 bpp modes don't really use the palette, so this will not
blank the display in all modes.
Blank the display by setting all palette values to zero . Note the 12 and 16 bpp modes don ' t really use the palette so this will not blank the display in all modes .
static void
sa1100fb_blank(int blank, struct fb_info *info)
{
	int i;
  	DPRINTK("blank=%d info->modename=%s\n", blank, info->modename);
	if (blank) {
                if (current_par.visual != FB_VISUAL_TRUECOLOR)
		for (i = 0; i < current_par.palette_size; i++)
			sa1100fb_palette_write(i, sa1100fb_palette_encode(i, 0, 0, 0, 0));
		sa1100fb_disable_lcd_controller();
	}
	else {
                if (current_par.visual != FB_VISUAL_TRUECOLOR)
		sa1100fb_set_cmap(&fb_display[current_par.currcon].cmap, 1, 
		                  current_par.currcon, info); 
		sa1100fb_enable_lcd_controller();
	}
}
static void sa1100fb_blank ( int blank , struct fb_info * info ) { int i ; DPRINTK ( " \n " , blank , info -> modename ) ; if ( blank ) { if ( current_par . visual != FB_VISUAL_TRUECOLOR ) for ( i = 0 ; i < current_par . palette_size ; i ++ ) sa1100fb_palette_write ( i , sa1100fb_palette_encode ( i , 0 , 0 , 0 , 0 ) ) ; sa1100fb_disable_lcd_controller ( ) ; } else { if ( current_par . visual != FB_VISUAL_TRUECOLOR ) sa1100fb_set_cmap ( & fb_display [ current_par . currcon ] . cmap , 1 , current_par . currcon , info ) ; sa1100fb_enable_lcd_controller ( ) ; } }
sa1100fb_blank():
      Blank the display by setting all palette values to zero.
sa1100fb_blank () : Blank the display by setting all palette values to zero .
/* TODO: Bitsy support for blanking display */