OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dce0c0
)
drm: Shrink {width,height}_mm to u16
author
Ville Syrjälä
<ville.syrjala@linux.intel.com>
Tue, 28 Apr 2020 17:19:29 +0000
(20:19 +0300)
committer
Ville Syrjälä
<ville.syrjala@linux.intel.com>
Wed, 27 May 2020 11:31:42 +0000
(14:31 +0300)
Instead of supporting ~2000km wide displayes let's limit ourselves
to ~65m. That seems plenty big enough to me.
Even with EDID_QUIRK_DETAILED_IN_CM EDIDs seem to be limited to
10*0xfff which fits into the 16 bits.
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20200428171940.19552-6-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
01ec0c6
..
b93b5dc
100644
(file)
--- a/
include/drm/drm_modes.h
+++ b/
include/drm/drm_modes.h
@@
-331,7
+331,7
@@
struct drm_display_mode {
* Addressable size of the output in mm, projectors should set this to
* 0.
*/
-
int
width_mm;
+
u16
width_mm;
/**
* @height_mm:
@@
-339,7
+339,7
@@
struct drm_display_mode {
* Addressable size of the output in mm, projectors should set this to
* 0.
*/
-
int
height_mm;
+
u16
height_mm;
/**
* @crtc_clock: