From: Youngjae Cho Date: Thu, 17 Aug 2023 05:06:31 +0000 (+0900) Subject: display: Remove unused disp_plgn/backlight_ops from headed X-Git-Tag: accepted/tizen/unified/20230821.162310~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85a489bf44eb64a742d2cd103c9c349d066f96b6;p=platform%2Fcore%2Fsystem%2Fdeviced.git display: Remove unused disp_plgn/backlight_ops from headed Change-Id: I858e6097b407bc447fa3687247ccff75fb725980 Signed-off-by: Youngjae Cho --- diff --git a/plugins/iot-headed/display/core.c b/plugins/iot-headed/display/core.c index 5dd4edfb..24a25b74 100644 --- a/plugins/iot-headed/display/core.c +++ b/plugins/iot-headed/display/core.c @@ -70,7 +70,6 @@ #include "display-panel.h" #include "display-config.h" #include "display-state-transition.h" -#include "shared/plugin.h" #include "led/touch-key.h" /** @@ -78,8 +77,6 @@ * @{ */ -static struct display_plugin *disp_plgn; -static struct display_backlight_ops *backlight_ops; static enum device_ops_status status = DEVICE_OPS_STATUS_UNINIT; static struct state states[DEVICED_DISPLAY_STATE_END] = { @@ -254,17 +251,6 @@ static const struct device_ops display_plugin_device_ops = { }; DEVICE_OPS_REGISTER(&display_plugin_device_ops) - -static void __CONSTRUCTOR__ initialize(void) -{ - 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."); -} /** * @} */ diff --git a/plugins/iot-headed/display/key-filter.c b/plugins/iot-headed/display/key-filter.c index 4baa6c30..c0e1a245 100644 --- a/plugins/iot-headed/display/key-filter.c +++ b/plugins/iot-headed/display/key-filter.c @@ -46,7 +46,6 @@ #include "shared/devices.h" #include "shared/device-notifier.h" #include "shared/common.h" -#include "shared/plugin.h" #include "shared/apps.h" #include "shared/log.h" #include "power/power-off.h" @@ -89,8 +88,6 @@ enum combination_process { COMBINATION_QUICKTALK = KEY_COMBINATION_POWERKEY | KEY_COMBINATION_VOLUMEDOWN, }; -static struct display_plugin *disp_plgn; -static struct display_backlight_ops *backlight_ops; static struct timeval pressed_time; static guint longkey_timeout_id = 0; static guint longkey_restore_id = 0; @@ -776,14 +773,6 @@ static struct display_actor_ops display_menukey_actor = { static void __CONSTRUCTOR__ initialize(void) { - 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."); - display_add_actor(&display_powerkey_actor); display_add_actor(&display_menukey_actor);