drm/nv50-/disp: use the number of dac, sor, pior rather than hardcoded values
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 30 Jul 2013 00:01:10 +0000 (01:01 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 4 Sep 2013 03:46:22 +0000 (13:46 +1000)
commitb969fa52ba725adf83761d579a300b1107f84478
tree65159d9ca445a0a003cd6d6efce666cc04f3a880
parentc98b81946827fe04c36bfa6bb376ffa739b0c2d0
drm/nv50-/disp: use the number of dac, sor, pior rather than hardcoded values

The values are already stored on chipset specific basis in the ctor.
Make the most of them and simplify the code further by using a temporary
variable to avoid code duplication.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c