drm/nv40/therm: improve selection between the old and the new style
authorMartin Peres <martin.peres@labri.fr>
Tue, 5 Mar 2013 09:26:30 +0000 (10:26 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 18 Mar 2013 01:15:26 +0000 (11:15 +1000)
commit7ae9712c60698ae2870fd115cb3ef4449a615509
tree773fb21a612642a697a15b068b321616adfa31df
parentc1b90df22595441d3a0ae86bd7c3bcc32787950a
drm/nv40/therm: improve selection between the old and the new style

The condition to select between the old and new style was a thinko
as rnndb orders chipsets based on their release date (or general
chronologie hw-wise) and not based on their chipset number.

As the nv40 family is a mess when it comes to numbers, this patch
introduces a switch-based selection between the old and new style.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c