summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-04-26 17:11:18 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-04-26 17:11:18 -0700
commitb45fe49bcd989be4e1327c13dd734410b395761c (patch)
tree495ac2617382701da008ba8cf80b338574bb01a8 /shared-core
parent10b9a116a7b7fe3acf0848de9e0cf40f8e1bcd75 (diff)
Enum-ectomy of vblank modesetting ioctl
Enum can be of pretty much any size since C leaves the choice of size up to the implementation. So avoid using it in new interfaces like the vblank pre- & post-modeset ioctl. Thanks to hch for spotting this.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index 5981dcb8..da149dca 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -555,10 +555,9 @@ union drm_wait_vblank {
struct drm_wait_vblank_reply reply;
};
-enum drm_modeset_ctl_cmd {
- _DRM_PRE_MODESET = 1,
- _DRM_POST_MODESET = 2,
-};
+
+#define _DRM_PRE_MODESET 1
+#define _DRM_POST_MODESET 2
/**
* DRM_IOCTL_MODESET_CTL ioctl argument type
@@ -567,7 +566,7 @@ enum drm_modeset_ctl_cmd {
*/
struct drm_modeset_ctl {
unsigned long arg;
- enum drm_modeset_ctl_cmd cmd;
+ int cmd;
};
/**