projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2159e46
)
drm: Shrink mode->type to u8
author
Ville Syrjälä
<ville.syrjala@linux.intel.com>
Tue, 28 Apr 2020 17:19:30 +0000
(20:19 +0300)
committer
Ville 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
patch
|
blob
|
history
diff --git
a/include/drm/drm_modes.h
b/include/drm/drm_modes.h
index
b93b5dc
..
0e74e37
100644
(file)
--- 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.
*/
- u
nsigned int
type;
+ u
8
type;
/**
* @clock: