summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Marchenko <r.marchenko@samsung.com>2015-11-25 15:40:03 +0200
committerSooChan Lim <sc1.lim@samsung.com>2015-12-02 11:59:58 +0900
commit7ff94383aa546fc188e846e5f6a64e42afbbaee7 (patch)
tree67bd7fd612a12338d1cf213670b14d6027133746
parentbff018709719b7d6b51650b3c5f0a0ab24028e3e (diff)
downloadlibdrm-7ff94383aa546fc188e846e5f6a64e42afbbaee7.tar.gz
libdrm-7ff94383aa546fc188e846e5f6a64e42afbbaee7.tar.bz2
libdrm-7ff94383aa546fc188e846e5f6a64e42afbbaee7.zip
Change-Id: I832a6ec5f76d4f8a0b94a616ac840d3d7f379f5b Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
-rw-r--r--sprd/sprd_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sprd/sprd_drm.c b/sprd/sprd_drm.c
index a81bae9d..a97fa444 100644
--- a/sprd/sprd_drm.c
+++ b/sprd/sprd_drm.c
@@ -874,7 +874,7 @@ static void sprd_drm_connector_set_property(struct sprd_drm_property *prop, uint
struct sprd_drm_mode_connector * conn = sprd_drm_resource_get(obj_id);
if (conn) {
if (strcmp(prop->name, "DPMS") == 0) {
- if (val == 0)
+ if (val == DRM_MODE_DPMS_OFF)
sprd_drm_connector_disable(conn);
else
sprd_drm_connector_enable(conn);