From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Sat, 12 Nov 2016 21:24:13 +0100 Subject: [U-Boot] [PATCH] video: bmp: Fix compilation errors with CONFIG_BMP_xxBPP enabled In-Reply-To: <20161112093238.13858-1-sr@denx.de> References: <20161112093238.13858-1-sr@denx.de> Message-ID: <20161112212413.508fa3fa@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Simon Glass > Cc: Anatolij Gustschin > --- > drivers/video/video_bmp.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied to u-boot-video/master. Thanks! -- Anatolij