]> 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)
commitffc401651c2f5f2306d00676bba19c4deb87bd6e
tree773fb21a612642a697a15b068b321616adfa31df
parentecc506dee99eb2808b6cfda3bb8ebd866a423cca
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