aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-09-23 11:01:05 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-09-24 02:29:19 -0400
commit67e1d4fbaefd6a27b55523bb6bb0dd941351a325 (patch)
tree8eb3d4a2510d9199fc0c8e4b0dd619c53bce7096
parentd34ec507d40faab908968985b3106869d8d8fbcf (diff)
drm/nouveau: Fix parsing of the temperature constant correction.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_temp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_temp.c b/drivers/gpu/drm/nouveau/nouveau_temp.c
index 54e3d9222f79..86b170a851be 100644
--- a/drivers/gpu/drm/nouveau/nouveau_temp.c
+++ b/drivers/gpu/drm/nouveau/nouveau_temp.c
@@ -113,8 +113,8 @@ nouveau_temp_vbios_parse(struct drm_device *dev, u8 *temp)
113 113
114 switch (temp[0]) { 114 switch (temp[0]) {
115 case 0x01: 115 case 0x01:
116 value = (value&0x8f) == 0 ? (value >> 9) & 0x7f : 0; 116 if ((value & 0x8f) == 0)
117 sensor->offset_constant = value; 117 sensor->offset_constant = (value >> 9) & 0x7f;
118 break; 118 break;
119 119
120 case 0x04: 120 case 0x04: