From bcbf2dd3218810097eb70dde07190fc493abfbd2 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 30 Mar 2009 12:45:56 +0000 Subject: [PATCH] Fix yellow. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20575 a1c6a512-1295-4272-9138-f99709370657 --- .../target/arm/sandisk/sansa-e200/lcd-e200.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c index 702f95bba9..78c224d6c5 100644 --- a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c +++ b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c @@ -262,6 +262,7 @@ static void lcd_power_on(void) power_on = true; } +#if defined(HAVE_LCD_ENABLE) /* Run the display on sequence for the driver IC */ static void lcd_display_on(void) { @@ -312,6 +313,13 @@ static void lcd_display_on(void) display_on = true; } + +#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) +bool lcd_active(void) +{ + return display_on; +} + /* Turn off visible display operations */ static void lcd_display_off(void) { @@ -343,6 +351,7 @@ static void lcd_display_off(void) /* VCOMG=0, VDV4-0=10001, VCM4-0=11001 */ lcd_write_reg(R_POWER_CONTROL4, 0x1119); } +#endif void lcd_init_device(void) { @@ -428,13 +437,6 @@ void lcd_init_device(void) LCD_REG_6 |= 1; /* Start DMA */ } -#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) -bool lcd_active(void) -{ - return display_on; -} -#endif - #if defined(HAVE_LCD_ENABLE) void lcd_enable(bool on) {