[U-Boot] [PATCH] video: bmp: Fix compilation errors with CONFIG_BMP_xxBPP enabled
Anatolij Gustschin
agust at denx.de
Sat Nov 12 21:24:13 CET 2016
On Sat, 12 Nov 2016 10:32:38 +0100
Stefan Roese sr at denx.de wrote:
> Compiling the 'bmp' command with DM and having one of the following macros
> enabled:
>
> CONFIG_BMP_16BPP, CONFIG_BMP_24BPP ONFIG_BMP_32BPP
>
> generates this error:
>
> drivers/video/video_bmp.c: In function ‘video_bmp_display’:
> drivers/video/video_bmp.c:315:22: error: ‘lcd_line_length’ undeclared (first use in this function)
> fb -= width * 2 + lcd_line_length;
> ^
>
> This patch moves to using the correct variable instead and enables the
> 'bmp' command for DM again.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Anatolij Gustschin <agust at denx.de>
> ---
> drivers/video/video_bmp.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to u-boot-video/master. Thanks!
--
Anatolij
More information about the U-Boot
mailing list