To prevent modify display config static struct in other file.
If it wanted to be modified later, setter will have to be added.
Change-Id: I477fc8476981f18d92509dfb6b2c0783cc7df734
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
.face_detection = NULL,
};
-inline struct display_config* get_var_display_config()
+inline const struct display_config* get_var_display_config()
{
return &display_conf;
}
static int dpms_running_state = DPMS_SETTING_DONE;
static bool display_dev_available = false;
static guint release_timer;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
inline struct _backlight_ops *get_var_backlight_ops(void)
{
int ignore = true;
static int value = KEY_RELEASED;
unsigned int caps;
- struct display_config *display_conf = get_var_display_config();
+ const struct display_config *display_conf = get_var_display_config();
if (!display_conf) {
_E("Failed to get display configuration variable.");
return ignore;
.face_detection = NULL,
};
-inline struct display_config* get_var_display_config()
+inline const struct display_config* get_var_display_config()
{
return &display_conf;
}
static int dpms_running_state = DPMS_SETTING_DONE;
static bool display_dev_available = false;
static guint release_timer;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
inline struct _backlight_ops *get_var_backlight_ops(void)
{
int ignore = true;
static int value = KEY_RELEASED;
unsigned int caps;
- struct display_config *display_conf = get_var_display_config();
+ const struct display_config *display_conf = get_var_display_config();
if (!display_conf) {
_E("Failed to get display configuration variable.");
return ignore;
.face_detection = NULL,
};
-inline struct display_config* get_var_display_config()
+inline const struct display_config* get_var_display_config()
{
return &display_conf;
}
static int dpms_running_state = DPMS_SETTING_DONE;
static bool display_dev_available = false;
static guint release_timer;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
inline struct _backlight_ops *get_var_backlight_ops(void)
{
int ignore = true;
static int value = KEY_RELEASED;
unsigned int caps;
- struct display_config *display_conf = get_var_display_config();
+ const struct display_config *display_conf = get_var_display_config();
if(!display_conf) {
_E("Failed to get display configuration variable.");
return ignore;
static void change_brightness_transit(int start, int end)
{
- struct display_config *display_conf = get_var_display_config();
+ const struct display_config *display_conf = get_var_display_config();
if(!display_conf) {
_E("Failed to get display configuration variable.");
return ;
.face_detection = NULL,
};
-inline struct display_config *get_var_display_config()
+inline const struct display_config *get_var_display_config()
{
return &display_conf;
}
static int aod_normal_level = -1;
static int aod_min_level = -1;
static int aod_charging_level = -1;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
static struct battery_status *battery = NULL;
static struct battery_status* (*fp_get_var_battery_status)(void);
int ignore = true;
static int value = KEY_RELEASED;
unsigned int caps;
- struct display_config *display_conf = get_var_display_config();
+ const struct display_config *display_conf = get_var_display_config();
if (!display_conf) {
_E("Failed to get display configuration variable.");
return ignore;
/* light sensor */
static float lmax, lmin;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
static bool update_working_position(void)
{
* Global variables
* display_conf : configuration of display
*/
-struct display_config* get_var_display_config();
+const struct display_config* get_var_display_config();
/*
* @brief Display Extension features
static struct display_plugin *disp_plgn;
static struct _backlight_ops *backlight_ops;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
static GVariant *dbus_start(GDBusConnection *conn,
const gchar *sender, const gchar *path, const gchar *iface, const gchar *name,
struct libinput_event_keyboard *k;
unsigned int time;
int fd = 0;
- struct display_config *display_conf = get_var_display_config();
+ const struct display_config *display_conf = get_var_display_config();
if(!display_conf) {
_E("Failed to get display configuration variable.");
return;
static GList *cond_head[S_END];
static int trans_condition;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
bool check_lock_state(int state)
{
static int custom_on_timeout = 0;
static int custom_normal_timeout = 0;
static int custom_dim_timeout = 0;
-static struct display_config *display_conf;
+static const struct display_config *display_conf;
int (*update_pm_setting) (int key_idx, int val);