display: headed: Remove unnecessrary device-interface.c 59/297459/1 accepted/tizen/unified/20230821.162310
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 18 Aug 2023 11:26:35 +0000 (20:26 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 18 Aug 2023 11:30:53 +0000 (20:30 +0900)
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 <y0.cho@samsung.com>
plugins/iot-headed/display/core.c
plugins/iot-headed/display/device-interface.c [deleted file]

index 3f3c2c9..3b2b814 100644 (file)
@@ -47,7 +47,7 @@
 #include <hal/device/hal-device-power.h>
 
 #include <libsyscommon/log.h>
-#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 (file)
index 5648968..0000000
+++ /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 <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h>
-#include <unistd.h>
-#include <limits.h>
-#include <math.h>
-#include <assert.h>
-#include <errno.h>
-#include <dlfcn.h>
-#include <hal/device/hal-display.h>
-
-#include <libsyscommon/log.h>
-#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.");
-}
-