drm/fourcc: Fix undefined left shift in DRM_FORMAT_BIG_ENDIAN macros
authorAdam Jackson <ajax@redhat.com>
Fri, 18 Oct 2019 17:50:41 +0000 (13:50 -0400)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Oct 2019 18:19:24 +0000 (21:19 +0300)
commit2f77d82e7ee416b51771cf022f23921b44aaaec3
treee165f87e9a2d8241b63a5e53bcd40a2c8b1a234f
parent2093dea3def9d5bf3000697ae3b0ec36c43354e0
drm/fourcc: Fix undefined left shift in DRM_FORMAT_BIG_ENDIAN macros

1<<31 is undefined because it's a signed int and C is terrible.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191018175041.613780-1-ajax@redhat.com
include/uapi/drm/drm_fourcc.h