]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7bd289dd98339972e687f0cc44ec911806c0c512
tree773fb21a612642a697a15b068b321616adfa31df
parent4c68eec13b7c61216d8bd520c9cee2159c32e223
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