1
0
Fork 0
forked from len0rd/rockbox

fuze+: lcd code cleanup

The lcd kind is always set to st7783 in case we can't read the ID
so don't bother handling impossible cases

Change-Id: I352fd43b26068b460e69190d37c4cd4627e1db9a
This commit is contained in:
Amaury Pouly 2013-01-12 19:06:24 +00:00
parent 5e7bd97e04
commit c8d36bb994

View file

@ -51,8 +51,7 @@ static enum lcd_kind_t
{
LCD_KIND_7783 = 0x7783,
LCD_KIND_9325 = 0x9325,
LCD_KIND_OTHER = 0,
} lcd_kind = LCD_KIND_OTHER;
} lcd_kind = LCD_KIND_7783;
static void setup_parameters(void)
{
@ -516,7 +515,6 @@ void lcd_enable(bool enable)
{
case LCD_KIND_7783: lcd_enable_7783(enable); break;
case LCD_KIND_9325: lcd_enable_9325(enable); break;
default: lcd_enable_7783(enable); break;
}
if(!enable)
common_lcd_enable(false);