mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
lcd: cleanup unused functions
This patch removes following two functions: - lcd_getbgcolor(...) not used somewhere outside lcd.c, internally we use now the global variable lcd_color_bg (was return value of function before) - lcd_getfgcolor(...) not used in any place of u-boot Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at> [agust: rebased] Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
57d76a89b0
commit
8d9eaafdd1
2 changed files with 1 additions and 18 deletions
17
common/lcd.c
17
common/lcd.c
|
@ -117,7 +117,6 @@ static int lcd_init(void *lcdbase);
|
|||
|
||||
static void *lcd_logo(void);
|
||||
|
||||
static int lcd_getbgcolor(void);
|
||||
static void lcd_setfgcolor(int color);
|
||||
static void lcd_setbgcolor(int color);
|
||||
|
||||
|
@ -497,7 +496,7 @@ void lcd_clear(void)
|
|||
/* set framebuffer to background color */
|
||||
#if (LCD_BPP != LCD_COLOR32)
|
||||
memset((char *)lcd_base,
|
||||
COLOR_MASK(lcd_getbgcolor()),
|
||||
COLOR_MASK(lcd_color_bg),
|
||||
lcd_line_length * panel_info.vl_row);
|
||||
#else
|
||||
u32 *ppix = lcd_base;
|
||||
|
@ -615,20 +614,6 @@ static void lcd_setbgcolor(int color)
|
|||
lcd_color_bg = color;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
int lcd_getfgcolor(void)
|
||||
{
|
||||
return lcd_color_fg;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
static int lcd_getbgcolor(void)
|
||||
{
|
||||
return lcd_color_bg;
|
||||
}
|
||||
|
||||
/************************************************************************/
|
||||
/* ** Chipset depending Bitmap / Logo stuff... */
|
||||
/************************************************************************/
|
||||
|
|
|
@ -26,8 +26,6 @@ void lcd_enable(void);
|
|||
void lcd_setcolreg(ushort regno, ushort red, ushort green, ushort blue);
|
||||
void lcd_initcolregs(void);
|
||||
|
||||
int lcd_getfgcolor(void);
|
||||
|
||||
/* gunzip_bmp used if CONFIG_VIDEO_BMP_GZIP */
|
||||
struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp,
|
||||
void **alloc_addr);
|
||||
|
|
Loading…
Add table
Reference in a new issue