From 4afb02c21d8220849962789ad678e1c38710808a Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Fri, 18 Aug 2023 20:26:35 +0900 Subject: [PATCH] display: headed: Remove unnecessrary device-interface.c The code had have actually nothing. All function pointers were NULL and it wouldn't have been assigned during runtime. Change-Id: Ife8d8b336ae60eba8460db036f45114b5ae7c7b3 Signed-off-by: Youngjae Cho --- plugins/iot-headed/display/core.c | 3 +- plugins/iot-headed/display/device-interface.c | 66 --------------------------- 2 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 plugins/iot-headed/display/device-interface.c diff --git a/plugins/iot-headed/display/core.c b/plugins/iot-headed/display/core.c index 3f3c2c9..3b2b814 100644 --- a/plugins/iot-headed/display/core.c +++ b/plugins/iot-headed/display/core.c @@ -47,7 +47,7 @@ #include #include -#include "device-interface.h" +#include "display-plugin.h" /** * @addtogroup POWER_MANAGER @@ -122,7 +122,6 @@ static int display_probe(void *data) dp->config = &display_conf; init_display_states(dp); - setup_display_plugin_backlight_ops(dp); dp->set_dim_state = NULL; dp->get_device_flags = NULL; dp->lcd_on_procedure = NULL; diff --git a/plugins/iot-headed/display/device-interface.c b/plugins/iot-headed/display/device-interface.c deleted file mode 100644 index 5648968..0000000 --- a/plugins/iot-headed/display/device-interface.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * deviced - * - * Copyright (c) 2012 - 2015 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include "device-interface.h" - -static struct display_backlight_ops backlight_ops; -static const struct syscommon_deviced_display_config *display_conf; - -inline struct display_backlight_ops *get_var_backlight_ops(void) -{ - return &backlight_ops; -} - -static struct display_backlight_ops backlight_ops = { - .set_brightness = NULL, - .get_brightness = NULL, - .transit_state = NULL, - .transit_brt = NULL, -}; - -void setup_display_plugin_backlight_ops(struct display_plugin *dp) -{ - assert(dp); - - dp->backlight = &backlight_ops; -} - -static void __CONSTRUCTOR__ initialize(void) -{ - display_conf = get_var_display_config(); - if (!display_conf) - _E("Failed to get display configuration variable."); -} - -- 2.7.4