plugin: mobile: display: Remove unused bezel wakeup 88/312888/1
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 10 Jun 2024 07:04:30 +0000 (16:04 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 17 Jun 2024 05:52:54 +0000 (14:52 +0900)
At first, bezel wakeup is added for wearable target from below commit.
78129922508e82a8304ef5b1add270e2ff93fb67
After that, this was copied to all plugins from below commit.
ce471ec18f19bb184848f4c84e813b834ef4bdee

Actually, bezel wakeup was for wearable target, and it was not
used properly from other plugins.
Because bezel wakeup is notified only in wearable plugin,
there was no code to notify bezel wakeup from deviced, since the
commit was added.
Thus, bezel wakeup is removed from mobile plugin.

Change-Id: I577a5888636ec090458590b9aa92c323d15b8913
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
plugins/mobile/display/key-filter.c

index a658fbb793b4580129ff2391bed7f82f56dc67eb..3c7b5fed44a3cb619922dd395f137e03b8893718 100644 (file)
@@ -101,7 +101,6 @@ static double combination_pressed_time;
 static bool touch_pressed = false;
 static int skip_lcd_off = false;
 static int skip_combination = false;
-static int bezel_wakeup = true;
 static int booting_check = true;
 
 static inline int current_state_in_on(void)
@@ -727,8 +726,8 @@ static void check_key_filter(struct timeval time, unsigned short type, unsigned
                if (ret < 0)
                        break;
 
-               if (current == SYSCOMMON_DEVICED_DISPLAY_STATE_OFF && bezel_wakeup) {
-                       switch_on_lcd(DEVICED_EVENT_INPUT_BEZEL);
+               if (current == SYSCOMMON_DEVICED_DISPLAY_STATE_OFF) {
+                       switch_on_lcd(DEVICED_EVENT_INPUT);
                        ignore = false;
                } else if (current != SYSCOMMON_DEVICED_DISPLAY_STATE_OFF)
                        ignore = false;
@@ -773,13 +772,6 @@ static int delayed_init_done(void *data)
        return 0;
 }
 
-static int bezel_wakeup_cb(void *data)
-{
-       bezel_wakeup = (int)((intptr_t)data);
-
-       return 0;
-}
-
 /*
  * Default capability
  * powerkey := LCDON | LCDOFF | POWEROFF
@@ -811,7 +803,6 @@ static void __CONSTRUCTOR__ initialize(void)
        display_add_actor(&display_menukey_actor);
 
        syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_DELAYED_INIT, delayed_init_done);
-       syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_BEZEL_WAKEUP, bezel_wakeup_cb);
 
        input_register_event_callback(check_key_filter, NULL, NULL, NULL);
 }