[PATCH 0/2] drm: Make some resolution info unsigned

Lyude Paul lyude at redhat.com
Tue Mar 25 21:27:03 UTC 2025


During the review of some of my patches for KMS bindings in Rust, it was
pointed out we have some areas of DRM that are storing resolutions as
signed integers when it doesn't really make sense. Since there's no real
usecase for this and it's a bit more obvious when writing rust code then
it is in C, let's fix this.

Lyude Paul (2):
  drm/edid: Use unsigned int in drm_add_modes_noedid()
  drm/mode_config: Make drm_mode_config.(max|min)_(width|height) signed

 drivers/gpu/drm/drm_edid.c    | 2 +-
 include/drm/drm_edid.h        | 2 +-
 include/drm/drm_mode_config.h | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)


base-commit: 5da39dce1fa3c81dc6552a16a9f748ba2980d630
-- 
2.48.1



More information about the dri-devel mailing list