OSDN Git Service

drm: Shrink mode->type to u8
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 28 Apr 2020 17:19:30 +0000 (20:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 27 May 2020 11:31:42 +0000 (14:31 +0300)
We only have 7 bits defined for mode->type. Shrink the storage to u8.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200428171940.19552-7-ville.syrjala@linux.intel.com
include/drm/drm_modes.h

index b93b5dc..0e74e37 100644 (file)
@@ -271,7 +271,7 @@ struct drm_display_mode {
         *    which are stuck around for hysterical raisins only. No one has an
         *    idea what they were meant for. Don't use.
         */
-       unsigned int type;
+       u8 type;
 
        /**
         * @clock: