display: panels: remove duplicated display_entity_set_state() for pm
authorDonghwa Lee <dh09.lee@samsung.com>
Wed, 30 Oct 2013 06:46:07 +0000 (15:46 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:01 +0000 (11:45 +0900)
remove duplicated display_entity_set_state() in suspend/resume function

Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
drivers/video/display/panel-l5f31188.c
drivers/video/display/panel-s6d6aa1.c
drivers/video/display/panel-s6e8aa0.c

index 4330a68..d95bd23 100644 (file)
@@ -632,24 +632,12 @@ static int l5f31188_remove(struct platform_device *pdev)
 
 static int l5f31188_suspend(struct device *dev)
 {
-       struct l5f31188 *panel = dev_get_drvdata(dev);
-
-       if (panel->power != FB_BLANK_UNBLANK)
-               return 0;
-
-       return display_entity_set_state(&panel->entity,
-                       DISPLAY_ENTITY_STATE_OFF);
+       return 0;
 }
 
 static int l5f31188_resume(struct device *dev)
 {
-       struct l5f31188 *panel = dev_get_drvdata(dev);
-
-       if (panel->power != FB_BLANK_UNBLANK)
-               return 0;
-
-       return display_entity_set_state(&panel->entity,
-                       DISPLAY_ENTITY_STATE_ON);
+       return 0;
 }
 
 static const struct dev_pm_ops l5f31188_pm_ops = {
index dd5285d..9d0e7c8 100644 (file)
@@ -787,22 +787,12 @@ static int s6d6aa1_remove(struct platform_device *dev)
 
 static int s6d6aa1_suspend(struct device *dev)
 {
-       struct s6d6aa1 *lcd = dev_get_drvdata(dev);
-
-       if (lcd->power != FB_BLANK_UNBLANK)
-               return 0;
-
-       return display_entity_set_state(&lcd->entity, DISPLAY_ENTITY_STATE_OFF);
+       return 0;
 }
 
 static int s6d6aa1_resume(struct device *dev)
 {
-       struct s6d6aa1 *lcd = dev_get_drvdata(dev);
-
-       if (lcd->power != FB_BLANK_UNBLANK)
-               return 0;
-
-       return display_entity_set_state(&lcd->entity, DISPLAY_ENTITY_STATE_ON);
+       return 0;
 }
 
 static struct dev_pm_ops s6d6aa1_pm_ops = {
index 30ed901..66c08f6 100644 (file)
@@ -1390,22 +1390,12 @@ static int s6e8aa0_remove(struct platform_device *pdev)
 
 static int s6e8aa0_suspend(struct device *dev)
 {
-       struct s6e8aa0 *lcd = dev_get_drvdata(dev);
-
-       if (lcd->power != FB_BLANK_UNBLANK)
-               return 0;
-
-       return display_entity_set_state(&lcd->entity, DISPLAY_ENTITY_STATE_OFF);
+       return 0;
 }
 
 static int s6e8aa0_resume(struct device *dev)
 {
-       struct s6e8aa0 *lcd = dev_get_drvdata(dev);
-
-       if (lcd->power != FB_BLANK_UNBLANK)
-               return 0;
-
-       return display_entity_set_state(&lcd->entity, DISPLAY_ENTITY_STATE_ON);
+       return 0;
 }
 
 static struct dev_pm_ops s6e8aa0_pm_ops = {