mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
bugfix: small tweak to VID calculation for VRM v10.0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2688 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
6c96e6495b
commit
35729048e9
1 file changed
+1
-1
@@ -67,7 +67,7 @@ static inline int vid_from_reg(int val, int vrm)
|
||||
else
|
||||
vid = 18625 - (val & 0x1f) * 250;
|
||||
if(val & 0x20)
|
||||
vid += 125;
|
||||
vid -= 125;
|
||||
vid /= 10; /* only return 3 dec. places for now */
|
||||
return vid;
|
||||
|
||||
|
||||
Reference in new issue
Block a user