summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/iriver
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-03-17 04:46:11 +0000
committerThomas Martitz <kugel@rockbox.org>2009-03-17 04:46:11 +0000
commit5c16ba4c4d5c0caf68d47e6ffb6f5a2f5923fed0 (patch)
treeda356d34d8cc50f1e0032b3061070247aa807a4b /firmware/target/arm/iriver
parentd0e834aa7349fab6367e74d0df88575dfd854496 (diff)
downloadrockbox-5c16ba4c4d5c0caf68d47e6ffb6f5a2f5923fed0.tar.gz
rockbox-5c16ba4c4d5c0caf68d47e6ffb6f5a2f5923fed0.tar.bz2
rockbox-5c16ba4c4d5c0caf68d47e6ffb6f5a2f5923fed0.zip
Fix very last yellows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20337 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver')
-rw-r--r--firmware/target/arm/iriver/h10/lcd-h10_20gb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/arm/iriver/h10/lcd-h10_20gb.c b/firmware/target/arm/iriver/h10/lcd-h10_20gb.c
index 547999aed3..4e6aebadd2 100644
--- a/firmware/target/arm/iriver/h10/lcd-h10_20gb.c
+++ b/firmware/target/arm/iriver/h10/lcd-h10_20gb.c
@@ -39,7 +39,9 @@ static int lcd_contrast;
static unsigned lcd_yuv_options SHAREDBSS_ATTR = 0;
/* Forward declarations */
+#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
static void lcd_display_off(void);
+#endif
/* register defines for the Renesas HD66773R */
#define R_START_OSC 0x00
@@ -314,7 +316,7 @@ void lcd_sleep(void)
}
#endif
-#if defined(HAVE_LCD_ENABLE)
+#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
static void lcd_display_off(void)
{
display_on = false;
@@ -337,6 +339,9 @@ static void lcd_display_off(void)
/* PT1-0=00, VLE2-1=00, SPT=0, GON=0, DTE=0, REV=0, D1-0=00 */
lcd_write_reg(R_DISP_CONTROL, 0x0000);
}
+#endif
+
+#if defined(HAVE_LCD_ENABLE)
static void lcd_display_on(void)
{
/* Be sure power is on first */