From: Ville Syrjälä Date: Tue, 28 Apr 2020 17:19:29 +0000 (+0300) Subject: drm: Shrink {width,height}_mm to u16 X-Git-Tag: v5.10.7~1332^2~33^2~656 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2159e4629addf29e310c342801a2cb3fe82cc3b4;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Emil Velikov Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20200428171940.19552-6-ville.syrjala@linux.intel.com --- 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: