diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2015-06-01 12:04:55 -0300 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2015-06-20 00:32:53 +0900 |
commit | 3cecda030f03efe5ce064f0263cd8ad2dc1e21ac (patch) | |
tree | 808f7dc063944ce9c9c27c7234dba0333ea1883c /drivers/gpu/drm/exynos/exynos_drm_crtc.c | |
parent | c4d96f1689226a2342962f2c70b16b0a3b8343ff (diff) | |
download | op-kernel-dev-3cecda030f03efe5ce064f0263cd8ad2dc1e21ac.zip op-kernel-dev-3cecda030f03efe5ce064f0263cd8ad2dc1e21ac.tar.gz |
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.c | 8 |
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 b7c6d51..644b4b7 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; } |