drm/nouveau/volt: allow non-bios voltage scaling
authorVince Hsu <vinceh@nvidia.com>
Tue, 2 Dec 2014 04:50:33 +0000 (12:50 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:44:07 +0000 (15:44 +1000)
commit08c7f248be2a17a025e8a0dc1bc9e14231f0ff28
tree5c8e97ce8cea386131bd55a8fd80a72fc130b815
parentc6f37e0ce658a3a7a272c58334974e36398bab7b
drm/nouveau/volt: allow non-bios voltage scaling

Move the vbios parsing out of init() and call it conditionally if the
platform has a vbios. Non-vbios platforms can use the ctor() to init the
data structures.

Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/volt/base.c