Skip to content

Commit

Permalink
hwmon/pc87360: Autodetect the VRM version
Browse files Browse the repository at this point in the history
pc87360 currently hardcodes vrm = 90 (2.4 vintage).  Update it to use
newer code in hwmon-vid which reads cpuid to determine the correct vid.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
jimc authored and Jean Delvare committed Dec 12, 2006
1 parent e9cea64 commit 3d7f9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/pc87360.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ static int pc87360_detect(struct i2c_adapter *adapter)
(i&0x02) ? "external" : "internal");

data->vid_conf = confreg[3];
data->vrm = 90;
data->vrm = vid_which_vrm();
}

/* Fan clock dividers may be needed before any data is read */
Expand Down

0 comments on commit 3d7f9a8

Please sign in to comment.