lkml.org 
[lkml]   [2015]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 04/12] drm: rockchip/dw_hdmi_rockchip: add resume/suspend support
Date
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
---
Changes in v2:
- Add suspend/resume support for dw_hdmi_rockchip driver

drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
index d236faa..2f8bacb 100644
--- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
@@ -323,9 +323,22 @@ static int dw_hdmi_rockchip_remove(struct platform_device *pdev)
return 0;
}

+static int dw_hdmi_rockchip_suspend(struct platform_device *pdev,
+ pm_message_t state)
+{
+ return dw_hdmi_suspend(pdev, state);
+}
+
+static int dw_hdmi_rockchip_resume(struct platform_device *pdev)
+{
+ return dw_hdmi_resume(pdev);
+}
+
static struct platform_driver dw_hdmi_rockchip_pltfm_driver = {
.probe = dw_hdmi_rockchip_probe,
.remove = dw_hdmi_rockchip_remove,
+ .resume = dw_hdmi_rockchip_resume,
+ .suspend = dw_hdmi_rockchip_suspend,
.driver = {
.name = "dwhdmi-rockchip",
.of_match_table = dw_hdmi_rockchip_dt_ids,
--
2.1.2



\
 
 \ /
  Last update: 2015-01-30 12:41    [W:0.186 / U:6.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site