diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-03-30 12:45:56 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-03-30 12:45:56 +0000 |
commit | bcbf2dd3218810097eb70dde07190fc493abfbd2 (patch) | |
tree | 4135199557a3aeb987881a5564124b0f422e636a /firmware | |
parent | 8983fcb5f2687b22b2cba68573f839ff2800e3c9 (diff) | |
download | rockbox-bcbf2dd3218810097eb70dde07190fc493abfbd2.tar.gz rockbox-bcbf2dd3218810097eb70dde07190fc493abfbd2.zip |
Fix yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20575 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/sandisk/sansa-e200/lcd-e200.c | 16 |
1 files 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) | |||
262 | power_on = true; | 262 | power_on = true; |
263 | } | 263 | } |
264 | 264 | ||
265 | #if defined(HAVE_LCD_ENABLE) | ||
265 | /* Run the display on sequence for the driver IC */ | 266 | /* Run the display on sequence for the driver IC */ |
266 | static void lcd_display_on(void) | 267 | static void lcd_display_on(void) |
267 | { | 268 | { |
@@ -312,6 +313,13 @@ static void lcd_display_on(void) | |||
312 | display_on = true; | 313 | display_on = true; |
313 | } | 314 | } |
314 | 315 | ||
316 | |||
317 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | ||
318 | bool lcd_active(void) | ||
319 | { | ||
320 | return display_on; | ||
321 | } | ||
322 | |||
315 | /* Turn off visible display operations */ | 323 | /* Turn off visible display operations */ |
316 | static void lcd_display_off(void) | 324 | static void lcd_display_off(void) |
317 | { | 325 | { |
@@ -343,6 +351,7 @@ static void lcd_display_off(void) | |||
343 | /* VCOMG=0, VDV4-0=10001, VCM4-0=11001 */ | 351 | /* VCOMG=0, VDV4-0=10001, VCM4-0=11001 */ |
344 | lcd_write_reg(R_POWER_CONTROL4, 0x1119); | 352 | lcd_write_reg(R_POWER_CONTROL4, 0x1119); |
345 | } | 353 | } |
354 | #endif | ||
346 | 355 | ||
347 | void lcd_init_device(void) | 356 | void lcd_init_device(void) |
348 | { | 357 | { |
@@ -428,13 +437,6 @@ void lcd_init_device(void) | |||
428 | LCD_REG_6 |= 1; /* Start DMA */ | 437 | LCD_REG_6 |= 1; /* Start DMA */ |
429 | } | 438 | } |
430 | 439 | ||
431 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | ||
432 | bool lcd_active(void) | ||
433 | { | ||
434 | return display_on; | ||
435 | } | ||
436 | #endif | ||
437 | |||
438 | #if defined(HAVE_LCD_ENABLE) | 440 | #if defined(HAVE_LCD_ENABLE) |
439 | void lcd_enable(bool on) | 441 | void lcd_enable(bool on) |
440 | { | 442 | { |