As display functions are relocated and refactored, this function became unnecessary.
Change-Id: Id0ef55c6f116bc8cba3db97c4487c6e67cbeee5c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
break;
case SPECIFIC_MODE_OFF:
display_backlight_get_default_brightness(&default_brightness);
- display_backlight_get_brightness_by_plugin_profile(¤t_brightness);
+ display_backlight_get_brightness(¤t_brightness);
/* Disable HBM, LBM */
auto_brightness_control(BR_HBM_OFF, BR_IMPLICIT);
int ret;
display_backlight_get_default_brightness(&default_brightness);
- display_backlight_get_brightness_by_plugin_profile(¤t_brightness);
+ display_backlight_get_brightness(¤t_brightness);
if (request == BR_LBM_ON) {
if (!get_lbm_setting())
assert(g_display_plugin.config);
- ret = display_backlight_get_brightness_by_plugin_profile(&tmp_value);
+ ret = display_backlight_get_brightness(&tmp_value);
if (ret < 0) {
_E("Failed to get display brightness.");
return;
display_backlight_get_default_brightness(&default_brightness);
- display_backlight_get_brightness_by_plugin_profile(&brt);
+ display_backlight_get_brightness(&brt);
if (state == DPMS_OFF) {
start = brt;
if (display_dimstay_check())
return;
- ret = display_backlight_get_brightness_by_plugin_profile(&prev);
+ ret = display_backlight_get_brightness(&prev);
if (ret < 0) {
_E("Failed to get brightness, %d.", ret);
int display_backlight_get_brightness(int *brightness)
{
- int brt, ret;
+ int brt = 0, ret = 0;
+
+ ret = display_plugin_backlight_get_brightness(brightness);
+ if (ret == 0)
+ return 0;
if (!display_is_hal_backend_available()) {
_E("There is no display device.");
return 0;
}
-/* FIXME: this function is only for wearable plugin, it should changed or removed after refactoring */
-int display_backlight_get_brightness_by_plugin_profile(int *brightness)
-{
- int ret;
-
- ret = display_plugin_backlight_get_brightness(brightness);
- if (ret == 0)
- return 0;
-
- return display_backlight_get_brightness(brightness);
-}
-
void display_backlight_change_brightness(int start, int end, int step)
{
int diff, val;
int *normalized_brightness);
int display_backlight_set_brightness(int brightness);
int display_backlight_get_brightness(int *brightness);
-int display_backlight_get_brightness_by_plugin_profile(int *brightness);
void display_backlight_change_brightness(int start, int end, int step);
int display_backlight_change_brightness_by_dpms_state(enum dpms_state state);
int display_backlight_set_default_brightness(int brightness);
int brt = -1, ret, result;
if (get_pm_cur_state() == S_NORMAL) {
- ret = display_backlight_get_brightness_by_plugin_profile(&brt);
+ ret = display_backlight_get_brightness(&brt);
if (ret < 0)
result = 0;
else
if (ret < 0)
_E("Failed to set vconf value for custom brightness status: %d", vconf_get_ext_errno());
- ret = display_backlight_get_brightness_by_plugin_profile(&brt);
+ ret = display_backlight_get_brightness(&brt);
if (ret < 0)
brt = ret;