drm/nouveau/therm: do not make assumptions on temperature
authorMartin Peres <martin.peres@labri.fr>
Tue, 5 Mar 2013 09:44:12 +0000 (10:44 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 18 Mar 2013 01:15:26 +0000 (11:15 +1000)
commit7591782b9f30a5a8bcbba5744c85050ff6743d69
treecb88aed87c850e843391aea2ec63f58388e1398b
parenteea4eb14a0f74f806e7a458f174f880744a68bdd
drm/nouveau/therm: do not make assumptions on temperature

In nouveau_therm_sensor_event, temperature is stored as an uint8_t
even though the original interface returns an int.

This change should make it more obvious when the sensor is either
very-ill-calibrated or when we selected the wrong sensor style
on the nv40 family.

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