]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd_bmp.c: make bmp_display() usable by drivers or board code
authorAnatolij Gustschin <agust@denx.de>
Fri, 27 Apr 2012 04:38:06 +0000 (04:38 +0000)
committerAnatolij Gustschin <agust@denx.de>
Fri, 25 May 2012 07:15:09 +0000 (09:15 +0200)
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
include/lcd.h

index 4c29fa34ba1a77ad192dfb1b239fd0d6e4ba1587..b8809e3bf5409bd154f2ced0a193392794ac32df 100644 (file)
@@ -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;
index 3d9ef167107e6f6e1bbfdcd874d6854025b0dae8..a10d8d02651b2cc6bd16ff457e136c68469472a0 100644 (file)
@@ -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
 /*