summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/exynos/exynos_drm_crtc.c
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2015-06-01 18:04:55 +0300
committerInki Dae <daeinki@gmail.com>2015-06-19 18:32:53 +0300
commit3cecda030f03efe5ce064f0263cd8ad2dc1e21ac (patch)
tree808f7dc063944ce9c9c27c7234dba0333ea1883c /drivers/gpu/drm/exynos/exynos_drm_crtc.c
parentc4d96f1689226a2342962f2c70b16b0a3b8343ff (diff)
downloadlinux-3cecda030f03efe5ce064f0263cd8ad2dc1e21ac.tar.xz
drm/exynos: split exynos_crtc->dpms in enable() and disable()
To follow more closely the new atomic API we split the dpms() helper into the enable() and disable() helper to get exactly the same semantics. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_crtc.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_crtc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
index b7c6d5150345..644b4b76e071 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
@@ -29,8 +29,8 @@ static void exynos_drm_crtc_enable(struct drm_crtc *crtc)
if (exynos_crtc->enabled)
return;
- if (exynos_crtc->ops->dpms)
- exynos_crtc->ops->dpms(exynos_crtc, DRM_MODE_DPMS_ON);
+ if (exynos_crtc->ops->enable)
+ exynos_crtc->ops->enable(exynos_crtc);
exynos_crtc->enabled = true;
@@ -51,8 +51,8 @@ static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
drm_crtc_vblank_off(crtc);
- if (exynos_crtc->ops->dpms)
- exynos_crtc->ops->dpms(exynos_crtc, DRM_MODE_DPMS_OFF);
+ if (exynos_crtc->ops->disable)
+ exynos_crtc->ops->disable(exynos_crtc);
exynos_crtc->enabled = false;
}