]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4397e7e6caea0864b1a497d5999ce2d5be7c4e7
tree65159d9ca445a0a003cd6d6efce666cc04f3a880
parent3a6961204025d63250849bf1db80f0e541078c88
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