Skip to content

Commit

Permalink
drm: Shrink mode->type to u8
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ville Syrjälä committed May 27, 2020
1 parent 2159e46 commit 3542cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/drm/drm_modes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3542cc5

Please sign in to comment.