summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Petermaier <oe5hpm@oevsv.at>2014-03-07 18:45:20 +0100
committerAnatolij Gustschin <agust@denx.de>2014-08-10 15:25:19 +0200
commit8d9eaafdd12991b92c265ae6380972bc3afea41c (patch)
tree4311337a9d5f08e898f9c125c7fb24cef42bee37
parent57d76a89b0f0afc1bb622c5c0b8d10dfd34f28b5 (diff)
downloadu-boot-imx-8d9eaafdd12991b92c265ae6380972bc3afea41c.zip
u-boot-imx-8d9eaafdd12991b92c265ae6380972bc3afea41c.tar.gz
u-boot-imx-8d9eaafdd12991b92c265ae6380972bc3afea41c.tar.bz2
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>
-rw-r--r--common/lcd.c17
-rw-r--r--include/lcd.h2
2 files changed, 1 insertions, 18 deletions
diff --git a/common/lcd.c b/common/lcd.c
index 2996e0d..156233f 100644
--- a/common/lcd.c
+++ b/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... */
/************************************************************************/
diff --git a/include/lcd.h b/include/lcd.h
index 88684ca..ea5860c 100644
--- a/include/lcd.h
+++ b/include/lcd.h
@@ -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);