summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);