From: Ville Syrjälä Date: Tue, 28 Apr 2020 17:19:30 +0000 (+0300) Subject: drm: Shrink mode->type to u8 X-Git-Tag: v5.9-rc1~51^2~27^2~134 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3542cc54a1bb17fed85f1503b6978a95107c2ba8;p=linux-2.6-block.git drm: Shrink mode->type to u8 We only have 7 bits defined for mode->type. Shrink the storage to u8. Reviewed-by: Sam Ravnborg Reviewed-by: Emil Velikov Reviewed-by: Daniel Vetter Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20200428171940.19552-7-ville.syrjala@linux.intel.com --- diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h index b93b5dcda392..0e74e3761182 100644 --- a/include/drm/drm_modes.h +++ b/include/drm/drm_modes.h @@ -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: