Change-Id: I592367573b0550d6841b1440ba7e2ea47849471f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
if (display_conf.timeout_enable)
get_lcd_timeout_from_settings();
ret = init_sysfs(flags);
- backlight_ops = get_backlight_ops();
- if (!backlight_ops) {
- _E("Failed to get backlight operator.");
- ret = -1;
- }
break;
case INIT_POLL:
_I("input init");
static void auto_brightness_init(void *data)
{
- backlight_ops = get_backlight_ops();
- if (!backlight_ops)
- _E("Failed to get backlight operator.");
-
display_info.update_auto_brightness = update_auto_brightness;
display_info.set_autobrightness_min = set_autobrightness_min;
display_info.reset_autobrightness_min = reset_autobrightness_min;
DISPLAY_OPS_REGISTER(&display_autobrightness_ops)
+static void __CONSTRUCTOR__ initialize(void)
+{
+ backlight_ops = get_backlight_ops();
+ if (!backlight_ops)
+ _E("Failed to get backlight operator.");
+}