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-01 18:18:36 -0800
commit8dcdd420a682e5b83e1da6e057c0cac8da9ff2bb (patch)
tree67bd7fd612a12338d1cf213670b14d6027133746
parentb55567d383141098d94c7f015a5ef531dc96aa56 (diff)
downloadlibdrm-8dcdd420a682e5b83e1da6e057c0cac8da9ff2bb.tar.gz
libdrm-8dcdd420a682e5b83e1da6e057c0cac8da9ff2bb.tar.bz2
libdrm-8dcdd420a682e5b83e1da6e057c0cac8da9ff2bb.zip
[SPRD] Fix inverse behavior of DPMS property setting
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);