}
#ifndef X86 /* Different with ARM FB driver, IA gfx driver is sensitive to the order. */
- backlight_ops.restore();
+ backlight_ops.update();
backlight_ops.on();
#else
backlight_ops.on();
- backlight_ops.restore();
+ backlight_ops.update();
#endif
} else if (pm_old_state == S_LCDDIM)
- backlight_ops.restore();
+ backlight_ops.update();
if (backlight_ops.get_lcd_power() != PM_LCD_POWER_ON)
backlight_ops.on();
pm_status_flag &= ~PWRSV_FLAG;
}
if (pm_cur_state == S_NORMAL)
- backlight_ops.restore();
+ backlight_ops.update();
}
static int poll_callback(int condition, PMMsg *data)
power_saving_display_stat) < 0) {
_E("Fail to set display frame rate!");
}
- backlight_ops.restore();
+ backlight_ops.update();
break;
case SETTING_POWER_SAVING_DISPLAY:
vconf_get_bool(VCONFKEY_SETAPPL_PWRSV_SYSMODE_STATUS,
PROP_DISPLAY_FRAME_RATE, power_saving_display_stat) < 0) {
_E("Fail to set display frame rate!");
}
- backlight_ops.restore();
+ backlight_ops.update();
}
break;
case SETTING_POWEROFF:
pm_status_flag |= LOWBT_FLAG;
}
}
- backlight_ops.restore();
+ backlight_ops.update();
/* USB connection check
* If connected, add sleep prohibit condition */
ret = vconf_set_int(VCONFKEY_SETAPPL_LCD_BRIGHTNESS, new_val);
if (!ret) {
- backlight_ops.restore();
+ backlight_ops.update();
_I("brightness is changed! (%d)", new_val);
} else {
_E("Fail to set brightness!");
return ret;
}
-static int backlight_restore(void)
+static int backlight_update(void)
{
int ret = 0;
int val = -1;
ret = vconf_get_int(VCONFKEY_PM_CUSTOM_BRIGHTNESS_STATUS, &val);
if (ret == 0 && val == VCONFKEY_PM_CUSTOM_BRIGHTNESS_ON) {
- _I("custom brightness mode! brt no restored");
+ _I("custom brightness mode! brt no updated");
return 0;
}
if ((pm_status_flag & PWRSV_FLAG) && !(pm_status_flag & BRTCH_FLAG)) {
backlight_ops.off = backlight_off;
backlight_ops.dim = backlight_dim;
backlight_ops.on = backlight_on;
- backlight_ops.restore = backlight_restore;
+ backlight_ops.update = backlight_update;
backlight_ops.set_default_brt = set_default_brt;
backlight_ops.get_lcd_power = get_lcd_power;
backlight_on();
}
- backlight_restore();
+ backlight_update();
free(pmsys);
pmsys = NULL;
if(fd != -1)
int (*off)(void);
int (*dim)(void);
int (*on)(void);
- int (*restore)(void);
+ int (*update)(void);
int (*set_default_brt)(int level);
int (*get_lcd_power)(void);
};
ret = device_get_property(DEVICE_TYPE_DISPLAY, cmd, &tmp_value);
if (!ret && (tmp_value != value)) {
backlight_ops.set_default_brt(value);
- backlight_ops.restore();
+ backlight_ops.update();
}
_I("load light data : %d, brightness : %d", (int)light_data.values[0], value);
}
}
backlight_ops.set_default_brt(default_brt);
- backlight_ops.restore();
+ backlight_ops.update();
}
return 0;