]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm_mode.h: use __u32 and __u64 from linux/types.h
authorMikko Rapeli <mikko.rapeli@iki.fi>
Sun, 31 Aug 2014 11:01:09 +0000 (13:01 +0200)
committerGabriel Laskar <gabriel@lse.epita.fr>
Thu, 10 Dec 2015 11:33:23 +0000 (12:33 +0100)
Fixes userspace compilation error:

drm/drm_mode.h:472:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
include/uapi/drm/drm_mode.h

index 6c11ca401de8b4f4400478f500352ddd48380644..44ad794960ee000f2a72a1e7af4c6cdb8c0aa39c 100644 (file)
@@ -526,14 +526,14 @@ struct drm_mode_crtc_page_flip {
 
 /* create a dumb scanout buffer */
 struct drm_mode_create_dumb {
-       uint32_t height;
-       uint32_t width;
-       uint32_t bpp;
-       uint32_t flags;
+       __u32 height;
+       __u32 width;
+       __u32 bpp;
+       __u32 flags;
        /* handle, pitch, size will be returned */
-       uint32_t handle;
-       uint32_t pitch;
-       uint64_t size;
+       __u32 handle;
+       __u32 pitch;
+       __u64 size;
 };
 
 /* set up for mmap of a dumb scanout buffer */
@@ -550,7 +550,7 @@ struct drm_mode_map_dumb {
 };
 
 struct drm_mode_destroy_dumb {
-       uint32_t handle;
+       __u32 handle;
 };
 
 /* page-flip flags are valid, plus: */