]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf90ae8724d0dbf33ef038786a3ed8dc99fe060b9
treecb88aed87c850e843391aea2ec63f58388e1398b
parent355ba3baa06923ac0e279e3356a38f9ec8d37b42
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