]> www.infradead.org Git - users/hch/configfs.git/commit
drm/radeon: convert bios_hardcoded_edid to drm_edid
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 26 Jul 2024 13:40:16 +0000 (15:40 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 27 Jul 2024 21:35:10 +0000 (17:35 -0400)
commitc6bb3acf1cdeed5d01ebde70b769a8e25993965d
treece8584ab331abc44b9211c081ebdcce0e1e91904
parentaeb81b62c7fe4782198e9dd79c7d6cdf04d92586
drm/radeon: convert bios_hardcoded_edid to drm_edid

Instead of manually passing around 'struct edid *' and its size,
use 'struct drm_edid', which encapsulates a validated combination of
both.

As the drm_edid_ can handle NULL gracefully, the explicit checks can be
dropped.

Also save a few characters by transforming '&array[0]' to the equivalent
'array' and using 'max_t(int, ...)' instead of manual casts.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_combios.c
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_mode.h