cmd_bmp.c: make bmp_display() usable by drivers or board code
PATCH 1/1 cmd_bmp.c: make bmp_display() usable by drivers or board code
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 <[email protected]>
--- common/cmd_bmp.c | 3 +-- include/lcd.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-)
common/cmd_bmp.c +1 -2
@@ -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;
include/lcd.h +1 -0
@@ -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 definedCONFIG_MPC823 /*
Signature · 1 line
1.7.7.6
PATCH 1/1 cmd_bmp.c: make bmp_display() usable by drivers or board code
Quoted 8 lines · On Fri, 27 Apr 2012 16:38:06 +0200 Anatolij Gustschin <[email protected]> wrote:
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 <[email protected]>--- common/cmd_bmp.c | 3 +-- include/lcd.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-)
Applied to u-boot-video/master.