summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2023-10-12 10:49:41 +0900
committerYoungjae Cho <y0.cho@samsung.com>2023-10-16 16:59:02 +0900
commit8e1d5654b1f89d96359e962273ba80c24a815b6f (patch)
tree4f50a6282ac6ba3c2eb67b4d86c91b1af13ed12f
parentf509414e84fec3112e99d30a82f83da26b4d83c8 (diff)
downloaddeviced-headed-8e1d5654b1f89d96359e962273ba80c24a815b6f.tar.gz
deviced-headed-8e1d5654b1f89d96359e962273ba80c24a815b6f.tar.bz2
deviced-headed-8e1d5654b1f89d96359e962273ba80c24a815b6f.zip
input: Remove unused bezel code
The headed profile has no bezel operation. Change-Id: I03c7b78270242ce9c3a850932a577cd7b48ea6ad Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r--src/deviced-input/deviced-input.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/deviced-input/deviced-input.c b/src/deviced-input/deviced-input.c
index 7495df7..0884553 100644
--- a/src/deviced-input/deviced-input.c
+++ b/src/deviced-input/deviced-input.c
@@ -91,7 +91,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;
#define POPUP_METHOD "PopupLaunch"
@@ -861,11 +860,7 @@ 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);
- ignore = false;
- } else if (current != SYSCOMMON_DEVICED_DISPLAY_STATE_OFF)
- ignore = false;
+ ignore = false;
break;
case EV_ABS:
ret = syscommon_resman_get_resource_attr_int(SYSCOMMON_RESOURCE_ID(DEVICED_RESOURCE_TYPE_DISPLAY),
@@ -919,13 +914,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;
-}
-
static syscommon_plugin_backend_deviced_input_funcs g_input_funcs = {
.input_event_cb = check_key_filter,
};
@@ -949,7 +937,6 @@ static int deviced_input_init(void **data)
1);
syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_DELAYED_INIT, delayed_init_done);
- syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_BEZEL_WAKEUP, bezel_wakeup_cb);
*data = (void *)&g_input_funcs;