libdrm: fix ABI change in drm_mode_get_encoder
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 29 Oct 2008 19:17:39 +0000 (12:17 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 29 Oct 2008 19:18:15 +0000 (12:18 -0700)
The encoder_type field should be at the top to match the kernel.

shared-core/drm_mode.h

index 0c378f4..bd3d257 100644 (file)
@@ -126,10 +126,10 @@ struct drm_mode_crtc {
 #define DRM_MODE_ENCODER_TVDAC 4
 
 struct drm_mode_get_encoder {
+       unsigned int encoder_type;
        unsigned int encoder_id;
-       unsigned int crtc_id; /**< Id of crtc */
 
-       uint32_t encoder_type;
+       unsigned int crtc_id; /**< Id of crtc */
 
        uint32_t possible_crtcs;
        uint32_t possible_clones;