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

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

parent d34ec507
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -113,8 +113,8 @@ nouveau_temp_vbios_parse(struct drm_device *dev, u8 *temp)

		switch (temp[0]) {
		case 0x01:
			value = (value&0x8f) == 0 ? (value >> 9) & 0x7f : 0;
			sensor->offset_constant = value;
			if ((value & 0x8f) == 0)
				sensor->offset_constant = (value >> 9) & 0x7f;
			break;

		case 0x04: