diff options
author | 2011-10-26 15:43:58 -0400 | |
---|---|---|
committer | 2011-11-01 16:02:10 +0000 | |
commit | 54bd5206bf1615eadee5b87c64252c6991d737dc (patch) | |
tree | 7f4a198f3e8114cc4910bce5666a9848c2a3af96 /ipc/msgutil.c | |
parent | drm/radeon: flush read cache for gtt with fence on r6xx and newer GPU V3 (diff) | |
download | wireguard-linux-54bd5206bf1615eadee5b87c64252c6991d737dc.tar.xz wireguard-linux-54bd5206bf1615eadee5b87c64252c6991d737dc.zip |
drm/radeon/kms: use defined constants for crtc/hpd count instead of hard-coded value 6
radeon_driver_irq_preinstall_kms and radeon_driver_irq_uninstall_kms
hard code the loop to 6 which happens to be the current maximum
number of crtcs and hpd pins; if one day an ASIC with more crtcs
(or hpd pins) comes out, this is a trouble waiting to happen.
introduce constants for maximum CRTC count, maximum HPD pins count
and maximum HDMI blocks count (per FIXME in radeon_irq structure)
and correct the loops in radeon_driver_irq_preinstall_kms and
radeon_driver_irq_uninstall_kms
v2: take care of goofs pointed out by Alex Deucher
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'ipc/msgutil.c')
0 files changed, 0 insertions, 0 deletions