Commit 67e1d4fb authored by Francisco Jerez's avatar Francisco Jerez Committed by Ben Skeggs

drm/nouveau: Fix parsing of the temperature constant correction.

Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent d34ec507
...@@ -113,8 +113,8 @@ nouveau_temp_vbios_parse(struct drm_device *dev, u8 *temp) ...@@ -113,8 +113,8 @@ nouveau_temp_vbios_parse(struct drm_device *dev, u8 *temp)
switch (temp[0]) { switch (temp[0]) {
case 0x01: case 0x01:
value = (value&0x8f) == 0 ? (value >> 9) & 0x7f : 0; if ((value & 0x8f) == 0)
sensor->offset_constant = value; sensor->offset_constant = (value >> 9) & 0x7f;
break; break;
case 0x04: case 0x04:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment