Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d7f9a86 authored by Jim Cromie's avatar Jim Cromie Committed by Jean Delvare
Browse files

hwmon/pc87360: Autodetect the VRM version



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: default avatarJim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent e9cea646
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */