diff options
| author | Lyude Paul <[email protected]> | 2025-03-31 22:23:54 +0000 |
|---|---|---|
| committer | Lyude Paul <[email protected]> | 2025-04-02 21:19:54 +0000 |
| commit | 4190aa3a76a6f840ace7d5e30719f85af0ed6302 (patch) | |
| tree | c3de24571779a735b216a7a5ca0a6f9e4e7e6356 /drivers/gpu/drm/omapdrm/omap_gem.c | |
| parent | drm/bridge: it6505: Switch to common helpers to power up/down dp link (diff) | |
| download | kernel-4190aa3a76a6f840ace7d5e30719f85af0ed6302.tar.gz kernel-4190aa3a76a6f840ace7d5e30719f85af0ed6302.zip | |
drm/edid: Use unsigned int in drm_add_modes_noedid()
A negative resolution doesn't really make any sense, so let's make these
parameters unsigned. In C this doesn't make much of a difference, but Rust
is stricter about signed/unsigned casts and additionally can check for
arithmetic over/underflows if CONFIG_RUST_OVERFLOW_CHECKS is enabled.
Signed-off-by: Lyude Paul <[email protected]>
Reviewed-by: Thomas Zimmermann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions
