diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2011-12-15 00:11:46 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-07-03 12:28:57 +0300 |
commit | aac42ede9528c369a17987400137903477d7a16f (patch) | |
tree | e4a5f7b26ed6311c688fa6bff7b2775ccb41e7d0 /include/drm | |
parent | 3494bb702df70b4f0078c3f3734dc8ace75b203a (diff) | |
download | kernel-mfld-blackbay-aac42ede9528c369a17987400137903477d7a16f.tar.gz kernel-mfld-blackbay-aac42ede9528c369a17987400137903477d7a16f.tar.bz2 kernel-mfld-blackbay-aac42ede9528c369a17987400137903477d7a16f.zip |
drm: fourcc: Use __u32 instead of u32
drm_fourcc.h can be included from user space so appropriate types.
Also fix some sparse errors while were at it.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_fourcc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h index 317213b80af..dd9dfe72767 100644 --- a/include/drm/drm_fourcc.h +++ b/include/drm/drm_fourcc.h @@ -26,8 +26,8 @@ #include <linux/types.h> -#define fourcc_code(a,b,c,d) ((u32)(a) | ((u32)(b) << 8) | \ - ((u32)(c) << 16) | ((u32)(d) << 24)) +#define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \ + ((__u32)(c) << 16) | ((__u32)(d) << 24)) #define DRM_FORMAT_BIG_ENDIAN (1<<31) /* format is big endian instead of little endian */ |