Skip to content

Commit

Permalink
drm/nouveau: Fix parsing of the temperature constant correction.
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Francisco Jerez authored and Ben Skeggs committed Sep 24, 2010
1 parent d34ec50 commit 67e1d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/nouveau/nouveau_temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 67e1d4f

Please sign in to comment.