On Fri, Apr 03, 2020 at 11:39:57PM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <[email protected]>
> 
> We only have 7 bits defined for mode->type. Shrink the storage to u8.
> 
> Reviewed-by: Emil Velikov <[email protected]>
> Reviewed-by: Daniel Vetter <[email protected]>
> Signed-off-by: Ville Syrjälä <[email protected]>
Reviewed-by: Sam Ravnborg <[email protected]>
> ---
>  include/drm/drm_modes.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h
> index 3625e3681488..f4507b987038 100644
> --- a/include/drm/drm_modes.h
> +++ b/include/drm/drm_modes.h
> @@ -270,7 +270,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:
> -- 
> 2.24.1
> 
> _______________________________________________
> dri-devel mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to