Removed unused get_var_backlight_ops() and MAX() macro.
Change-Id: I872e077f68a5e14153130eef57a3123657fbd4df
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
#define AMBIENT_CLOCK_WAITING_TIME 5000 /* ms */
static struct display_plugin *disp_plgn;
-static struct _backlight_ops *backlight_ops;
static int ambient_state;
static int ambient_condition; /* Setting Value */
static pid_t ambient_pid; /* Ambient Clock pid */
disp_plgn = get_var_display_plugin();
if (!disp_plgn)
_E("Failed to get display plugin variable.");
-
- backlight_ops = get_var_backlight_ops();
- if (!backlight_ops)
- _E("Failed to get backlight operator variable.");
}
#define ON_COUNT 1
#define OFF_COUNT 1
-static struct _backlight_ops *backlight_ops;
static int (*_default_action) (int);
static guint alc_timeout_id = 0;
static guint update_timeout;
static void __CONSTRUCTOR__ initialize(void)
{
- backlight_ops = get_var_backlight_ops();
- if (!backlight_ops)
- _E("Failed to get backlight operator variable.");
-
display_conf = get_var_display_config();
if (!display_conf)
_E("Failed to get display configuration variable.");
#define EXPIRED_POPUP_ID "_REQUEST_ID_"
static struct display_plugin *disp_plgn;
-static struct _backlight_ops *backlight_ops;
static const struct display_config *display_conf;
static GVariant *dbus_start(GDBusConnection *conn,
_E("Failed to get display plugin variable.");
}
- backlight_ops = get_var_backlight_ops();
- if (!backlight_ops)
- _E("Failed to get backlight operator variable.");
-
display_conf = get_var_display_config();
if (!display_conf)
_E("Failed to get display configuration variable.");
#define no_transition_timer() (get_transition_timer() == 0)
#define no_foreground_lock(st) (check_lock_state(st) == false)
-static struct _backlight_ops *backlight_ops;
static GList *cond_head[S_END];
static int trans_condition;
static void __CONSTRUCTOR__ initialize(void)
{
- backlight_ops = get_var_backlight_ops();
- if (!backlight_ops)
- _E("Failed to get backlight operator variable.");
-
display_conf = get_var_display_config();
if (!display_conf) {
_E("Failed to get display config variable.");
static int dpms_running_state = DPMS_SETTING_DONE;
-static struct _backlight_ops *backlight_ops;
-
/* FIXME: This function is for temporary use, should be fixed after plugin refactoring */
int display_panel_set_dpms_state(int dpms_on, enum device_flags flags)
{
return hal_device_display_get_frame_rate(frame_rate);
}
-
-/* FIXME: This code structure should be changed to plugin api call, after plugin refactoting*/
-static void __CONSTRUCTOR__ initialize(void)
-{
- backlight_ops = get_var_backlight_ops();
- if (!backlight_ops)
- _W("Failed to get backlight operator variable.");
-}
\ No newline at end of file
NUM_ENDPOINTS,
};
-#define MAX(a, b) ((a) > (b) ? (a) : (b))
-
#define report_error(...) do { \
fprintf(stderr, __VA_ARGS__); \
putchar('\n'); \