display: Remove unreachable display-enhance code 23/296923/4
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 7 Aug 2023 08:24:04 +0000 (17:24 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 9 Aug 2023 09:18:52 +0000 (18:18 +0900)
The enhance isn't invoked by display_ops->func(), but by notifier.

Change-Id: I43f4cfd3c1afc8b11960302fc5cdb4e97ac9c4b5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
plugins/mobile/display/core.c
plugins/mobile/display/display-info.h
plugins/wearable/display/core.c
plugins/wearable/display/display-info.h

index 6b6c49d132e40e8a187c0574dcc7974e2e888499..f0d4a1c716166b4670daada603cb68ae99e9f259 100644 (file)
@@ -241,9 +241,6 @@ static void display_exit(void *data)
 
 static int display_start(enum device_flags flags)
 {
-       const struct display_ops *enhance_ops = NULL;
-       bool on = true;
-
        /* NORMAL MODE */
        if (flags & NORMAL_MODE) {
                if (flags & LCD_PANEL_OFF_MODE)
@@ -252,9 +249,6 @@ static int display_start(enum device_flags flags)
                else
                        /* normal lcd on */
                        display_panel_set_panel_state_by_on_state(flags);
-               FIND_DISPLAY(enhance_ops, "enhance");
-               if (enhance_ops && enhance_ops->func)
-                       enhance_ops->func(RESTORE_ENHANCE_OUTDOOR, &on);
                return 0;
        }
 
index bf368daa4c01d885ce6f5f20c23b47f1706e9b41..68fd02e8c5e0f749e51f7721e2b3827febb2b75e 100644 (file)
@@ -21,7 +21,6 @@
 #define __DISPLAY_INFO_H__
 
 #define DISPLAY_FUNC(a, b)     (((a) << 16) | (b))
-#define ENHANCE_CMD(x) DISPLAY_FUNC('E', (x))
 #define HBM_CMD(x)             DISPLAY_FUNC('H', (x))
 #define LBM_CMD(x)             DISPLAY_FUNC('L', (x))
 
@@ -38,10 +37,6 @@ enum lbm_state {
        LBM_TABLE_LOAD = LBM_CMD(1),
 };
 
-enum enhance_state {
-       RESTORE_ENHANCE_OUTDOOR = ENHANCE_CMD(1),
-};
-
 struct hbmsetstate {
        int hbm;
        int timeout;
index 02468b90e691b5ba09bd2a3b024fb2e0ab046de6..43590a8b2cb30e4a5e9da2be38c9e5a591272e68 100644 (file)
@@ -996,8 +996,6 @@ static void display_exit(void *data)
 
 static int display_start(enum device_flags flags)
 {
-       const struct display_ops *enhance_ops = NULL;
-       bool on = true;
        /* NORMAL MODE */
        if (flags & NORMAL_MODE) {
                if (flags & LCD_PANEL_OFF_MODE)
@@ -1006,9 +1004,6 @@ static int display_start(enum device_flags flags)
                else
                        /* normal lcd on */
                        display_panel_set_panel_state_by_on_state(flags);
-               FIND_DISPLAY(enhance_ops, "enhance");
-               if (enhance_ops && enhance_ops->func)
-                       enhance_ops->func(RESTORE_ENHANCE_OUTDOOR, &on);
                return 0;
        }
 
index c28127bd82390c5fc057492f7b3b171f4b5e6065..927e2c27a8b02fdd9101cd31d79c96678ad676fd 100644 (file)
@@ -21,7 +21,6 @@
 #define __DISPLAY_INFO_H__
 
 #define DISPLAY_FUNC(a, b)     (((a) << 16) | (b))
-#define ENHANCE_CMD(x) DISPLAY_FUNC('E', (x))
 #define HBM_CMD(x)             DISPLAY_FUNC('H', (x))
 #define LBM_CMD(x)             DISPLAY_FUNC('L', (x))
 
@@ -38,10 +37,6 @@ enum lbm_state {
        LBM_TABLE_LOAD = LBM_CMD(1),
 };
 
-enum enhance_state {
-       RESTORE_ENHANCE_OUTDOOR = ENHANCE_CMD(1),
-};
-
 struct hbmsetstate {
        int hbm;
        int timeout;