drm/nouveau/temp: Fix signed/unsigned int logic
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Jun 2011 01:13:23 +0000 (02:13 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jun 2011 06:04:39 +0000 (16:04 +1000)
commit40ce4279e17e99bb98d02b8746fcf20abff8185b
treeae82dc4ddb92bfd1d405ee7683b32d9b933728c5
parent0b33c936599d75b8d8ff6868fa0cbd5676d88b89
drm/nouveau/temp: Fix signed/unsigned int logic

Many (all?) of the coefficients related to calculating the
correct temperature are signed integers

This patch correcly parses and stores those values
It also ensures that the default offset is 0 (previously 1)

Affected cards - the original nv50 and the nv40 family

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_temp.c