[PATCH v2] drm/radeon/kms: use defined constants for crtc/hpd count instead of hard-coded value 6

2011-10-26 Thread Alex Deucher
On Wed, Oct 26, 2011 at 3:43 PM, Ilija Hadzic wrote: > 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 trou

[PATCH v2] drm/radeon/kms: use defined constants for crtc/hpd count instead of hard-coded value 6

2011-10-26 Thread Ilija Hadzic
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 c

Re: [PATCH v2] drm/radeon/kms: use defined constants for crtc/hpd count instead of hard-coded value 6

2011-10-26 Thread Alex Deucher
On Wed, Oct 26, 2011 at 3:43 PM, Ilija Hadzic wrote: > 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 trou

[PATCH v2] drm/radeon/kms: use defined constants for crtc/hpd count instead of hard-coded value 6

2011-10-26 Thread Ilija Hadzic
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 c