* [U-Boot] [PATCH] lcd: cleanup unused functions
@ 2014-03-07 17:45 Hannes Petermaier
2014-08-11 14:18 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Petermaier @ 2014-03-07 17:45 UTC (permalink / raw)
To: u-boot
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>
---
common/lcd.c | 17 +----------------
include/lcd.h | 2 --
2 files changed, 1 insertion(+), 18 deletions(-)
diff --git a/common/lcd.c b/common/lcd.c
index aa81522..3f73541 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -110,7 +110,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);
@@ -454,7 +453,7 @@ void lcd_clear(void)
#else
/* set framebuffer to background color */
memset((char *)lcd_base,
- COLOR_MASK(lcd_getbgcolor()),
+ COLOR_MASK(lcd_color_bg),
lcd_line_length * panel_info.vl_row);
#endif
/* Paint the logo and retrieve LCD base address */
@@ -563,20 +562,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 d06d6f1..d1cb6b1 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);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] lcd: cleanup unused functions
2014-03-07 17:45 [U-Boot] [PATCH] lcd: cleanup unused functions Hannes Petermaier
@ 2014-08-11 14:18 ` Anatolij Gustschin
0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2014-08-11 14:18 UTC (permalink / raw)
To: u-boot
On Fri, 7 Mar 2014 18:45:20 +0100
Hannes Petermaier <oe5hpm@oevsv.at> wrote:
> 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>
> ---
> common/lcd.c | 17 +----------------
> include/lcd.h | 2 --
> 2 files changed, 1 insertion(+), 18 deletions(-)
applied to u-boot-video/master. Thanks!
Anatolij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-11 14:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 17:45 [U-Boot] [PATCH] lcd: cleanup unused functions Hannes Petermaier
2014-08-11 14:18 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox