summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorDonghwa Lee <dh09.lee@samsung.com>2013-10-30 15:46:07 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:45:01 +0900
commitcd34c40e2c4efe118a1f61feaf4019b6c81ec1b3 (patch)
tree1bcde6ab9b263373c2382d9858f3329e300a354e /drivers/video
parent824da40563fb933fa641788653b3956a9c715af7 (diff)
downloadlinux-3.10-cd34c40e2c4efe118a1f61feaf4019b6c81ec1b3.tar.gz
linux-3.10-cd34c40e2c4efe118a1f61feaf4019b6c81ec1b3.tar.bz2
linux-3.10-cd34c40e2c4efe118a1f61feaf4019b6c81ec1b3.zip
display: panels: remove duplicated display_entity_set_state() for pm
remove duplicated display_entity_set_state() in suspend/resume function Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/display/panel-l5f31188.c16
-rw-r--r--drivers/video/display/panel-s6d6aa1.c14
-rw-r--r--drivers/video/display/panel-s6e8aa0.c14
3 files changed, 6 insertions, 38 deletions
diff --git a/drivers/video/display/panel-l5f31188.c b/drivers/video/display/panel-l5f31188.c
index 4330a6806e4..d95bd234cba 100644
--- a/drivers/video/display/panel-l5f31188.c
+++ b/drivers/video/display/panel-l5f31188.c
@@ -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 = {
diff --git a/drivers/video/display/panel-s6d6aa1.c b/drivers/video/display/panel-s6d6aa1.c
index dd5285d7344..9d0e7c81f58 100644
--- a/drivers/video/display/panel-s6d6aa1.c
+++ b/drivers/video/display/panel-s6d6aa1.c
@@ -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 = {
diff --git a/drivers/video/display/panel-s6e8aa0.c b/drivers/video/display/panel-s6e8aa0.c
index 30ed90188b6..66c08f6f64f 100644
--- a/drivers/video/display/panel-s6e8aa0.c
+++ b/drivers/video/display/panel-s6e8aa0.c
@@ -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 = {