diff options
| author | Wolfgang Denk <[email protected]> | 2013-01-05 09:45:48 +0000 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2013-03-21 09:05:08 +0100 |
| commit | 46d1d5dd43e4d7c78f1fd6a5ee958d7b8a8626eb (patch) | |
| tree | b7f742aa84d55cb10254b2dfdcc5ce5a9f1b8531 /include | |
| parent | 8b906a9f0b3fd0d4421e08c4fa62f61a01289611 (diff) | |
common/lcd.c: cleanup use of global variables
lcd_color_fg and lcd_color_bg had to be declared in board specific
code, but were not actually used there; in addition, we have getter /
setter functions for these, which were not used either.
Get rid of the global variables, and use the getter function where
needed (so far no setter calls are needed).
Signed-off-by: Wolfgang Denk <[email protected]>
Cc: Alessandro Rubini <[email protected]>
Cc: Anatolij Gustschin <[email protected]>
Cc: Bo Shen <[email protected]>
Cc: Haavard Skinnemoen <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Nikita Kiryanov <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stelian Pop <[email protected]>
Cc: Tom Warren <[email protected]>
Acked-by: Simon Glass <[email protected]>
Acked-by: Jeroen Hofstee <[email protected]>
[agust: also fixed cm_t35 board while rebasing]
Signed-off-by: Anatolij Gustschin <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/lcd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/lcd.h b/include/lcd.h index 4ac4ddd1e0e..e8c6c96f5c5 100644 --- a/include/lcd.h +++ b/include/lcd.h @@ -32,13 +32,11 @@ extern char lcd_is_enabled; extern int lcd_line_length; -extern int lcd_color_fg; -extern int lcd_color_bg; /* * Frame buffer memory information */ -extern void *lcd_base; /* Start of framebuffer memory */ +extern void *lcd_base; /* Start of framebuffer memory */ extern void *lcd_console_address; /* Start of console buffer */ extern short console_col; @@ -54,6 +52,8 @@ extern void lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue); extern void lcd_initcolregs (void); +extern int lcd_getfgcolor(void); + /* gunzip_bmp used if CONFIG_VIDEO_BMP_GZIP */ extern struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp); extern int bmp_display(ulong addr, int x, int y); |
