summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-03-30 12:45:56 +0000
committerThomas Martitz <kugel@rockbox.org>2009-03-30 12:45:56 +0000
commitbcbf2dd3218810097eb70dde07190fc493abfbd2 (patch)
tree4135199557a3aeb987881a5564124b0f422e636a /firmware
parent8983fcb5f2687b22b2cba68573f839ff2800e3c9 (diff)
downloadrockbox-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.c16
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 */
266static void lcd_display_on(void) 267static 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)
318bool lcd_active(void)
319{
320 return display_on;
321}
322
315/* Turn off visible display operations */ 323/* Turn off visible display operations */
316static void lcd_display_off(void) 324static 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
347void lcd_init_device(void) 356void 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)
432bool lcd_active(void)
433{
434 return display_on;
435}
436#endif
437
438#if defined(HAVE_LCD_ENABLE) 440#if defined(HAVE_LCD_ENABLE)
439void lcd_enable(bool on) 441void lcd_enable(bool on)
440{ 442{