summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-07-06 11:08:49 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-07-06 11:08:49 +0200
commit6738e7b00bf05529303ed690873495db6d83337c (patch)
treec29353f4c78fb75de913683add74ee6580be2972 /shared-core
parente810cb9243fe6c4905182869d9e3272d861a14cb (diff)
modesetting-101: Rename DPMS modes to avoid compatibility issues with xorg definitions.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index c7c7f13c..2e4d2a94 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -1028,10 +1028,11 @@ struct drm_mm_info_arg {
#define DRM_MODE_FLAG_CLKDIV2 (1<<13)
/* DPMS flags */
-#define DPMSModeOn 0
-#define DPMSModeStandby 1
-#define DPMSModeSuspend 2
-#define DPMSModeOff 3
+/* bit compatible with the xorg definitions. */
+#define DRM_MODE_DPMS_ON 0
+#define DRM_MODE_DPMS_STANDBY 1
+#define DRM_MODE_DPMS_SUSPEND 2
+#define DRM_MODE_DPMS_OFF 3
struct drm_mode_modeinfo {
unsigned int clock;