mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
fix backlight shutdown waring and fix switch screen backlight status
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user