fix backlight shutdown waring and fix switch screen backlight status

This commit is contained in:
yzq
2012-10-24 14:55:18 +08:00
parent 6307cd6953
commit fdb213ae2c
2 changed files with 2 additions and 4 deletions

View File

@@ -357,9 +357,6 @@ static void rk29_backlight_shutdown(struct platform_device *pdev)
rk29_bl->props.brightness = 0;
rk29_bl_update_status(rk29_bl);
if (rk29_bl_info && rk29_bl_info->pwm_suspend)
rk29_bl_info->pwm_suspend();
if (rk29_bl_info && rk29_bl_info->io_deinit)
rk29_bl_info->io_deinit();
}

View File

@@ -761,7 +761,8 @@ int rk_fb_switch_screen(rk_screen *screen ,int enable ,int lcdc_id)
#if defined(CONFIG_NO_DUAL_DISP) //close backlight for device whic do not support dual display
rk29_backlight_set(!enable);
#elif defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF) //close backlight for device whic do not support dual display
rk29_backlight_set(1);
if(enable)
rk29_backlight_set(1);
#endif
return 0;