diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-04-28 20:19:29 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-05-27 14:31:42 +0300 |
commit | 2159e4629addf29e310c342801a2cb3fe82cc3b4 (patch) | |
tree | 61f31776246cf50ba1575337980d8311cebdf43c /include/drm | |
parent | 5dce0c0b92d426b5278b0d6b2ec189115554116a (diff) | |
download | linux-2159e4629addf29e310c342801a2cb3fe82cc3b4.tar.bz2 |
drm: Shrink {width,height}_mm to u16
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
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_modes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h index 01ec0c6d1cb5..b93b5dcda392 100644 --- 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: |