* [U-Boot] [PATCH] cmd_bmp.c: make bmp_display() usable by drivers or board code
@ 2012-04-27 14:38 Anatolij Gustschin
2012-05-24 20:47 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Anatolij Gustschin @ 2012-04-27 14:38 UTC (permalink / raw)
To: u-boot
Currently bmp_display() is static and can not be used directly
in the driver or board code. Export it for other users.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
common/cmd_bmp.c | 3 +--
include/lcd.h | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c
index 4c29fa3..b8809e3 100644
--- a/common/cmd_bmp.c
+++ b/common/cmd_bmp.c
@@ -33,7 +33,6 @@
#include <malloc.h>
static int bmp_info (ulong addr);
-static int bmp_display (ulong addr, int x, int y);
/*
* Allocate and decompress a BMP image using gunzip().
@@ -221,7 +220,7 @@ static int bmp_info(ulong addr)
* Return: None
*
*/
-static int bmp_display(ulong addr, int x, int y)
+int bmp_display(ulong addr, int x, int y)
{
int ret;
bmp_image_t *bmp = (bmp_image_t *)addr;
diff --git a/include/lcd.h b/include/lcd.h
index d95feeb..f9377bf 100644
--- a/include/lcd.h
+++ b/include/lcd.h
@@ -55,6 +55,7 @@ extern void lcd_initcolregs (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);
#if defined CONFIG_MPC823
/*
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-24 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27 14:38 [U-Boot] [PATCH] cmd_bmp.c: make bmp_display() usable by drivers or board code Anatolij Gustschin
2012-05-24 20:47 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox